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.
6 thoughts on “Hide WordPress Update Nag in Admin Dashboard”
Great tip, thanks
What about the plugins updates?
“Update available”, big round number popping up next to Plugins in the dashboard menu?
How do we get rid of that?
Hi Leeroy, I have updated the post with what you are looking for. Let me know if you need any further assistance.
Wow, thanks dude!
I tried it out and it works just fine.
Have an overly nice day!
Great Post!
Is there an easy way in functions.php to get rid of the admin_notice section (the yellow box) plugins use. I have a plugin that thanks you and puts a settings link in it … trouble is, I don’t want admins seeing that because if they change the settings … then I have to fix it. It is a multi user site and I have blocked plugin access but this one lets any level user in the settings…
Thanks for any help.