Skip to content

Instantly share code, notes, and snippets.

@johnalarcon
Last active December 28, 2018 02:48
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 johnalarcon/b2ab4e51459aff3723c7ecf6cd16f94c to your computer and use it in GitHub Desktop.
Save johnalarcon/b2ab4e51459aff3723c7ecf6cd16f94c to your computer and use it in GitHub Desktop.
Remove the WP 5.0 update nag
<?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