Skip to content

Instantly share code, notes, and snippets.

@simongcc
Last active December 24, 2015 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simongcc/6837124 to your computer and use it in GitHub Desktop.
Save simongcc/6837124 to your computer and use it in GitHub Desktop.
Hide admin update message in Wordpress
/*
Purpose: Remove Wordpress Update Message under Admin Bar(Top Menu Bar)
Version Tested: 3.6
Reference:
http://www.wpbeginner.com/wp-tutorials/how-to-hide-the-wordpress-upgrade-message-in-the-dashboard/
http://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices
*/
function wp_custom_admin_hide_update() {
remove_action( 'admin_notices', 'update_nag', 3 );
}
add_action('admin_menu','wp_custom_admin_hide_update');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment