How to hide all WordPress update notifications

The WordPress update system is a really useful tool, which alerts you every time there is an update of plugins, themes, or WordPress itself.

But sometimes it’s overwhelming to have so many update notices in sight, that they can cause the untempered administrator to update without doing any pre-checking.

I’m not saying that you don’t have to update, on the contrary, because you always have to keep WordPress up to date, but you don’t have to update at the exact moment when it appears that there is a new update, and above all, always do it in an orderly and safe way.

A responsible webmaster will schedule the updates, not just to do them any day, but in a scheduled way, after a backup and testing everything as soon as it is updated in a copy of the web, not in a crazy way, just because it is overwhelming to see updates.

It is also very common that, when you do web maintenance to clients, if they have enough permissions, they get nervous to see for several days that there are pending updates, and think that you are not taking care of their website properly, when in fact it is quite the opposite, it is because you are a responsible and methodical administrator.

Well, in these cases and many more than sure you can think of, a way to avoid that stress of update notices is simply to hide them, so that later, the day you have scheduled, you check what is pending to be updated and make safe and responsible updates.

And there are several methods of hiding these updates, so let’s see what options we have…

Hide updates from plugins only

If you just want to hide the plugin updates the trick is to add the following code to your customization plugin or theme functions.php file:

remove_action('load-update-core.php','wp_update_plugins');
add_filter('pre_site_transient_update_plugins','__return_null');Code language: JavaScript (javascript)

Save the changes and you will no longer see any plugin update notices.

Hide updates from WordPress only

If you prefer to hide only WordPress kernel updates, the code to use would be this one:

add_action('after_setup_theme','remove_core_updates');
function remove_core_updates()
{
 if(! current_user_can('update_core')){return;}
 add_action('init', create_function('$a',"remove_action( 'init', 'wp_version_check' );"),2);
 add_filter('pre_option_update_core','__return_null');
 add_filter('pre_site_transient_update_core','__return_null');
}Code language: JavaScript (javascript)

Well, there’s one less thing that’s going to weigh you down on the WordPress desktop.

Hide updates to everything: plugins, theme, and WordPress

So if you are sure and want to hide all the updates, then your code is this one:

function remove_core_updates(){
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}
add_filter('pre_site_transient_update_core','remove_core_updates');
add_filter('pre_site_transient_update_plugins','remove_core_updates');
add_filter('pre_site_transient_update_themes','remove_core_updates');Code language: PHP (php)

Selectively hide updates with a plugin

For those who prefer plugins, with Disable All Updates you can selectively choose which updates to hide.

However, any administrator user will be able to access the plugin’s settings and change the options, so it’s still not very professional to use this option, don’t you think?

The results

However, in any of the above cases, what you get is an administration without notices of updates, partial or complete.

Read this post in Spanish: Cómo ocultar todos los avisos de actualizaciones de WordPress

How useful was this post?

Click on a smiley to rate it!

Average rating 5 / 5. Vote count: 4

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Skip to content