Whenever there’s a new update available, WordPress notifies the administrator with a nag in the admin dashboard.
If you’d like to hide this nag, you can do so without using any plugin. Simply follow the steps shown below.
Open:
wp-admin/includes/update.php
Find (around line 139):
add_action( ‘admin_notices’, ‘update_nag’, 3 );
Comment out the line:
// add_action( ‘admin_notices’, ‘update_nag’, 3 );
That’s it!
If you don’t want to mess with core files, then add this to your theme’s functions.php
file:
function hide_wp_update_nag() { remove_action( 'admin_notices', 'update_nag', 3 ); } add_action('admin_menu','hide_wp_update_nag');
Reload your dashboard and you won’t see the update nag.
Hide Plugins Update Indicator in WordPress Dashboard Menu
Along with the dashboard notification, WordPress also shows a count of available plugin updates in the dashboard menu.
If you want to hide it, as Leeroy needed, just drop the following to your your theme’s functions.php
file.
function hide_plugin_update_indicator(){ global $menu,$submenu; $menu[65][0] = 'Plugins'; $submenu['index.php'][10][0] = 'Updates'; } add_action('admin_menu', 'hide_plugin_update_indicator');
These tweaks does not prevent you from updating WordPress, you can view and run update as you always did.