Disable the update message in wordpress dashboard

February 23, 2009 · Print This Article

When a new version of WordPress is available, a message asking you to update your WP installation is displayed on your dashboard.

But sometimes you may want to hide this message.

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( '$x', "remove_action( 'init', 'wp_version_check' );" ), 2 );
add_filter( 'pre_option_update_core', create_function( '$x', "return null;" ) );
}


Your choice for site templates and wordpress themes

Comments

Got something to say?

You must be logged in to post a comment.