Skip to content

Instantly share code, notes, and snippets.

@dionysia
Created October 14, 2013 07:22
Show Gist options
  • Save dionysia/6972019 to your computer and use it in GitHub Desktop.
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
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