Skip to content

Instantly share code, notes, and snippets.

@evansekeful
Created June 27, 2017 17:24
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 evansekeful/53669b082fc9841b2968b7891184b19e to your computer and use it in GitHub Desktop.
Save evansekeful/53669b082fc9841b2968b7891184b19e to your computer and use it in GitHub Desktop.
Wordpress Remove Core Updates Function
function remove_core_updates(){
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}
add_filter('pre_site_transient_update_core','remove_core_updates');
add_filter('pre_site_transient_update_plugins','remove_core_updates');
add_filter('pre_site_transient_update_themes','remove_core_updates');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment