Remove update notification

This hides the update message that is displayed when there is a new version of WordPress available.

However, we don’t want to hide it for administrators, since you always want to keep your WordPress installation fresh for security reasons. The conditional tag current_user_can() let’s us hide the message for everybody but the admins.

Code Snippet:

<?php
if ( !current_user_can('administrator') ) {
    add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
    add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
}
?>

Posted in Admin area