Created
September 30, 2013 10:55
-
-
Save viktorbijlenga/6762169 to your computer and use it in GitHub Desktop.
Hide Wordpress update message on production server.
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
// Hide update nag on the production server | |
$production = 'http://PRODUCTIONURL.com'; | |
$check_url = home_url(); | |
function hideUpdateNag() { | |
remove_action( 'admin_notices', 'update_nag', 3 ); | |
} | |
if ( $production == $check_url ) { | |
add_action('admin_menu','hideUpdateNag'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment