Post Pic

How to: Disable the “please update now” message in WP dashboard

When a new version of WordPress is available, a message asking you to update your WP installation is displayed on your dashboard. Even if you better update, sometimes you may want to hide this message. Here is how to do it.

To get rid of the "Please update now" message in your WordPress dashboard, simply paste the following code on your functions.php file.

if ( !current_user_can( 'edit_users' ) ) {
  add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
  add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
}

Thanks to Joost de Valk for this great code snippet!

4 Responses

Apr 30 2012 08:01

You can also do this by setting the $options array in the includes/update.php file.
All you have to do is set the $options['available'] to false.

Jun 14 2012 11:21

don’t know where you put that piece of code.. i’m not a programmer fortunately;
so i’ve just put
.update-nag {display:none !important}
to
\wp-admin\css\wp-admin.css
= no notification.

Mar 29 2013 08:26

Hmm it appears like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
I too am an aspiring blog blogger but I’m still new to the whole thing. Do you have any tips and hints for newbie blog writers? I’d genuinely appreciate it.

Apr 13 2013 14:53

Worked for me.

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required

WP Theme of the week

Sponsored Likebox