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