Last active
December 24, 2015 17:39
-
-
Save simongcc/6837124 to your computer and use it in GitHub Desktop.
Hide admin update message in Wordpress
This file contains 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
/* | |
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