Horje

Remove Update Notification for all users except ADMIN User

Just copy and past following codes to yourdomain.com/wp-content/themes/activated-theme/fucntions.php most below.
functions.php
Example: PHP
// REMOVE THE WORDPRESS UPDATE NOTIFICATION FOR ALL USERS EXCEPT SYSADMIN
   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;" ) );
   }




Type:
php
Category:
Web Tutorial
Sub Category:
Wordpress Administration Shortcode
Uploaded by:
Admin