Last active
December 28, 2018 02:48
-
-
Save johnalarcon/b2ab4e51459aff3723c7ecf6cd16f94c to your computer and use it in GitHub Desktop.
Remove the WP 5.0 update nag
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
<?php | |
// Add the following to your functions.php file to hide the WP 5.0 update nag. | |
add_action('after_setup_theme', 'codepotent_remove_wp50_update_nag'); | |
function codepotent_remove_wp50_update_nag() { | |
add_filter('pre_option_update_core','__return_null'); | |
add_filter('pre_site_transient_update_core','__return_null'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment