Hide all WordPress update notifications in dashboard

WordPress has a build-in upgrade system. This system automatically informs you when there is an upgrade available for WordPress, or one of the themes or plugins that are installed on your WordPress installation.

Wordpress upgrade notification

To disable this update notification, there is no switch in the settings menu or anywhere else in the admin dashboard. To prevent WordPress from showing these information snippets on top of your WordPress dashboard, you shall need to add a PHP code snippet to your functions.php file.

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

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

// hide update notifications
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 hide core updates, themes updates or plugin updates.

Save your file and the update notification in your WordPress admin area should be gone. If you work with clients, this may be an elegant solution for you to keep the interface of your client’s dashboard as simple as possible.

While you won’t be notified about any new version of WordPress with these settings, I strongly recommend to check for updates manually. WordPress updates often contain security fixes and performance improvements. Running an old version of this content management system may lead to hacking for example.


Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.


29 thoughts on “Hide all WordPress update notifications in dashboard

  1. How to revert? Deleting the code in functions.php does not do the trick. No updates are being shown even though I’ve tried removing the code from functions.php.

    I’ve tried clearing cache etc. And have tried on 2-3 different sites where I have had this code running. Please help out here.

  2. Wow…. awesome I’ve been looking for a solution for this…
    just wanted to let you guys know that this works… dated: 20 march 2020

  3. This snippet disables not just automatic updates, but manual updates, too.

    Folks: do not use this snippet. You won’t get security updates for themes or plugins, and your site will get hacked.

  4. Pingback: Menghilangkan Notifikasi Update di Backend WordPress – Studio Inspirasi

Leave a Reply

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