Return to Snippet

Revision: 52373
at October 21, 2011 02:28 by florent


Initial Code
<?php
function wp_hide_update() {
	        global $current_user;
	        get_currentuserinfo();
	 
	        if ($current_user->ID != 1) { // only admin will see it
	            remove_action( 'admin_notices', 'update_nag', 3 );
	        }
	    }
	    add_action('admin_menu','wp_hide_update');
?>

Initial URL


Initial Description


Initial Title
Hide update warning for every user but admin 

Initial Tags
wordpress, update

Initial Language
PHP