PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Hook to remove Update Available icon in menu

  1. In a wordpress network of sites, site-owners/admins aren't able to update plugins. Yet if a Gravity Forms update is available, an icon appears beside their 'Forms' menu item.

    They think it's a new form submission because the icons are the same - when really it's an update they can't do anything about.

    This is misleading and confusing - it would be great if there was a hook that could be put into create_menu() for disabling $update_icon via a theme/plugins functions.php

    Posted 12 years ago on Wednesday August 22, 2012 | Permalink
  2. This is a good suggestion. I needed to do something similar in the past so I hid the icon with CSS. There are two steps to this:

    1. create an admin stylesheet with the "display:hidden" for the elements you don't want to see
    2. load the stylesheet in the wp-admin

    Here is the stylesheet I used:

    [css]
    /* hide the update available icon for the forms menu */
    li#toplevel_page_gf_edit_forms span.update-plugins {
            display:none;
    }

    I saved that to a file called wp-admin.css in my child theme's directory. Then I load the stylesheet in the admin via functions.php:

    [php]
    function load_custom_wp_admin_style() {
            wp_register_style( 'custom_wp_admin_css', get_stylesheet_directory_uri() . '/wp-admin.css', false, get_bloginfo('version') );
            wp_enqueue_style ( 'custom_wp_admin_css' );
    }
    add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );

    Your idea is a good one and we'll leave it open under feature requests. Thank you.

    Posted 12 years ago on Friday August 24, 2012 | Permalink