Created
January 17, 2023 11:22
-
-
Save hmowais/b561e6b8530dcbe90a7359113a40010e to your computer and use it in GitHub Desktop.
Plugins and Themes Updates OFF
This file contains 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 | |
// Update OFF | |
// Remove WP Updates | |
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