Created
February 7, 2014 10:46
-
-
Save iladarsda/8860547 to your computer and use it in GitHub Desktop.
WordPress: disable updates
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
// Disable Theme Updates # 3.0+ | |
remove_action( 'load-update-core.php', 'wp_update_themes' ); | |
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) ); | |
wp_clear_scheduled_hook( 'wp_update_themes' ); | |
// Disable Plugin Updates #3.0+ | |
remove_action( 'load-update-core.php', 'wp_update_plugins' ); | |
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); | |
wp_clear_scheduled_hook( 'wp_update_plugins' ); | |
// Diasable Core Updates # 3.0+ | |
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); | |
wp_clear_scheduled_hook( 'wp_version_check' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment