To disable upgrade now notification message for not-Administrators users, we have embedded the code that will remove or hide the update nags for non-admin users. For that, we need to copy the below code and paste it into your WordPress theme’s functions.php file.

<?php
/* Do not include opening php tag. */
if ( !current_user_can( 'manage_options' ) ) {
  add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
  add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
}
?>

You can also remove with the below action hook :

if ( !current_user_can( 'manage_options' ) ) {
remove_action( 'admin_notices', 'maintenance_nag', 10 );
}

For Multisite

remove_action( 'network_admin_notices', 'maintenance_nag', 10 );
There are currently no comments.