• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Twitter GitHub
You are here: Home / Solution / Disable Core WordPress Update Notice

Disable Core WordPress Update Notice

Last updated on February 7, 2022 by Sal Ferrarello

When working on projects, I often want to strictly control the version of WordPress that is running. However sometimes one of the other administrators on the site sees the “WordPress 5.9 is available! Please update now.” message and clicks it, thereby prematurely updating to a newer version of WordPress core. This notice can be disabled.

WordPress Core Update Notice.

Here is the code to disable the WordPress core update notice.

add_action(
    'admin_notices',
    function() {
        remove_action( 'admin_notices', 'update_nag', 3 );
    },
    2
);
Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit

Filed Under: Dev Tips, Programming, Solution Tagged With: WordPress, WordPress Core

Reader Interactions

Leave a Reply Cancel reply

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

Copyright © 2022 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in