nerijus
6/13/2013 - 11:49 AM

Disable the “please update now” message in WP dashboard

Disable the “please update now” message in WP dashboard

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;" ) );
}