Created
December 16, 2023 16:17
-
-
Save madhvendras84/bce4488c044614eae002fa37da15ec54 to your computer and use it in GitHub Desktop.
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
/* | |
******************************************************************************************************************** | |
****************************** Stop wordpress / plugin / theme updates ********************************************* | |
******************************************************************************************************************** | |
*/ | |
function shakti_remove_wp_core_updates() | |
{ | |
global $wp_version; | |
return (object)array( | |
'last_checked' => time(), | |
'version_checked' => $wp_version | |
); | |
} | |
add_filter('pre_site_transient_update_core','shakti_remove_wp_core_updates'); | |
add_filter('pre_site_transient_update_plugins','shakti_remove_wp_core_updates'); | |
add_filter('pre_site_transient_update_themes','shakti_remove_wp_core_updates'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment