mitch95
2/4/2016 - 3:32 PM

Hide WordPress updates from everyone apart from admin

Hide WordPress updates from everyone apart from admin

## Hide WP updates from all users, except Admin
function hide_update_notice_to_all_but_admin_users() 
{
    if (!current_user_can('update_core')) {
        remove_action( 'admin_notices', 'update_nag', 3 );
    }
}
add_action( 'admin_head', 'hide_update_notice_to_all_but_admin_users', 1 );