How to Disable WordPress Update Notifications (2026)

by Ataul Ghani

Disclosure

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.

Disable WordPress Update Notifications

Disable WordPress Update Notifications


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!

Share on:

Disclosure: This post may contain affiliate links or paid partnerships. We may earn a commission if you click a link and make a purchase, at no extra cost to you. See our disclosure for more info.
Photo of author
Written by Ataul Ghani

5 thoughts on “How to Disable WordPress Update Notifications (2026)”

  1. I love this snippet!!

    One addon seems to be slipping past your beautiful function. Please advise how to get rid of this. It’s a with classes “notice notice-success rank-math-notice”. I don’t wanna activate it. 😏

    “Rank Math Pro is installed but not activated yet. Activate now. It only takes 20 seconds!”

    Reply
  2. Hi,
    Thank you so much for sharing this!
    Would really love to know if there is also any way let only a certain role to the update notice for this code.

    Thanks :)

    Reply
    • @Nio, What kind of role you want to use within this code? Actually this is the way to simply hide the notification for all users except admin role. If you want more role then need to find another way.
      Thanks!

      Reply

Leave a Comment