SHARE
TWEET

Untitled

a guest Apr 21st, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action('after_setup_theme','remove_core_updates');
  2. function remove_core_updates()
  3. {
  4.  if(! current_user_can('update_core')){return;}
  5.  add_action('init', create_function('$a',"remove_action( 'init', 'wp_version_check' );"),2);
  6.  add_filter('pre_option_update_core','__return_null');
  7.  add_filter('pre_site_transient_update_core','__return_null');
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top