How to Hide Update Notifications in WordPress (2024)

Sometime it’s really an important issue to hide themes, plugins or any core update notifications in WordPress. Because WordPress update notification is shown to all users who log into the dashboard, but the message is different depending on user role. When a new version of WordPress is available, only admins are able to update the core code. Other users who aren’t an admin get a nice notice telling them they should notify the site administrator that a new version of WordPress is available. If you’re reading this, the chances are you’ll know anyway when a new version of WordPress is out and thus you don’t need all your users telling you.

Hide Update Notifications in WordPress


So head over to your theme’s folder > (/wp-content/themes/example-theme) and open the functions.php file.

Now past the following code at the bottom of that file:

This code will ensures that no users other than “admin” are notified by WordPress when updates are available in dashboard

// Disable WordPress update notification
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'); //hide updates for WordPress itself
add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes

Remove any of the last three lines if you only want to make sure specific notification like: core updates, themes updates or plugin updates.

Now, Save theme function file and the update notification in your WordPress admin area should be gone.

If this work 100% for you then never forget to share a thanks compliment in comment!


Editorial Note: When you buy through links on our site, we may earn an affiliate commission. Commissions do not affect our writers' opinions or evaluations.