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.
Here is the code to disable the WordPress core update notice.
add_action(
'admin_notices',
function() {
remove_action( 'admin_notices', 'update_nag', 3 );
},
2
);
Leave a Reply