transmitstudio
1/13/2017 - 6:44 PM

Hide update nags for all but Admins

Hide update nags for all but Admins

function hide_notice_for_users() 
{
if (!current_user_can('update_core')) {
remove_action( 'admin_notices', 'update_nag', 3 );
}
}
add_action( 'admin_head', 'hide_notice_for_users', 1 );