Skip to content

Instantly share code, notes, and snippets.

@JackNUMBER
Created March 31, 2014 14:35
Show Gist options
  • Save JackNUMBER/9893749 to your computer and use it in GitHub Desktop.
Save JackNUMBER/9893749 to your computer and use it in GitHub Desktop.
[Wordpress] Disable updates check
<?
/* In functions.php */
// Disable Wordpress update check
add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));
wp_clear_scheduled_hook('wp_version_check');
// Disable theme update check
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_plugins');
// Disable plugins update check
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_themes');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment