“Remove Update Notification for all users except ADMIN User”

“Remove Update Notification for all users except ADMIN User”

I have 2 administrators in my wordpress, but I only want that one of them see the “Update Notification”. I’ve inserted this code on my funtions.php file and change name of one of my adminastrator login name the code – if ($user_login !== “miguel”) – but it didnt’ work?

Any help?
Thanks

Solutions Collecting From Web of "“Remove Update Notification for all users except ADMIN User”"

this works fine for a specific user login:

 global $user_login;
   get_currentuserinfo();
   if ($user_login !== "admin") { // change admin to the username that gets the updates
    add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
    add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
   }

and this for a specific user id:

global $user_ID;
   get_currentuserinfo();
   if ($user_ID !== 1) { // change 1 to the id number that gets the updates
    add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
    add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
   }