Last active
December 25, 2015 15:39
-
-
Save davidvandenbor/6999745 to your computer and use it in GitHub Desktop.
WordPress: Disable WP updates and plugin 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
<?php | |
// Disable WordPress updates and plugins updates | |
// @file functions.php | |
// disable updates | |
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); | |
remove_action( 'load-update-core.php', 'wp_update_plugins' ); | |
// or: Remove WordPress Update Notification | |
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 ); | |
add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment