Created
February 10, 2016 14:14
-
-
Save rickbenetti/5f938f41f683d9f17bef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment