Created
October 14, 2013 07:22
-
-
Save dionysia/6972019 to your computer and use it in GitHub Desktop.
Use the following code to hide the update message to all users except Admin users. From Paulund's blog: http://www.paulund.co.uk/hide-wordpress-update-notice
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_notices', '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