Hide WordPress Update Notice without a Plugin

WordPress does an awesome job of making things as easy as possible for users and developers alike. Every time a new version of WordPress is released, we are provided with a handy reminder in our administration panel and given the option to use the automatic update feature. On more than one occasion I have tried using the WordPress automatic update feature with disastrous results. Disastrous might be a bit of an exaggeration, but it has certainly cost me hours of unnecessary work. The point is, that depending on your hosting package, server configuration, and file permissions, the automatic update does not always work.

New versions of WordPress are released so frequently that the update reminder can become a bit of a nuisance lingering at the top of your administration panel. In order to completely hide the update notice, just add the following to functions.php:

<?php
function hide_update_notice() {
    remove_action( 'admin_notices', 'update_nag', 3 );
}
add_action( 'admin_notices', 'hide_update_notice', 1 );
?>

Below is the code to prevent everyone but the administrator of the site from seeing the update notice.

<?php
function hide_update_notice() {
    global $user_login , $user_email;
    get_currentuserinfo();
    if ($user_login != "admin") {
        remove_action( 'admin_notices', 'update_nag', 3 );
    }
}
add_action( 'admin_notices', 'hide_update_notice', 1 );
?>

One thought on “Hide WordPress Update Notice without a Plugin

Leave a Reply

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

Are you in need of a freelance web developer?

Hire me