Created
November 2, 2015 20:10
-
-
Save WPsites/a1c7cdbad84f330aaadc 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
<?php | |
/* | |
Plugin Name: Remove Update Nag | |
Description: Remove WordPress update nag as not needed | |
*/ | |
add_action('after_setup_theme','remove_core_updates'); | |
function remove_core_updates() | |
{ | |
if(! current_user_can('update_core')){return;} | |
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'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment