Created
December 7, 2018 23:08
-
-
Save rwkyyy/5813912efd1eb61f968e69ff9731761b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function hide_update_notice_to_all_users() { | |
remove_action( 'admin_notices', 'update_nag', 3 ); | |
add_action('init', create_function('$a',"remove_action( 'init', 'wp_version_check' );"),2); | |
add_filter('pre_option_update_core','__return_null'); | |
add_filter('pre_site_transient_update_core','__return_null'); | |
} | |
add_action( 'admin_head', 'hide_update_notice_to_all_users', 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment