Skip to content

Instantly share code, notes, and snippets.

@davidvandenbor
Last active December 25, 2015 15:39
Show Gist options
  • Save davidvandenbor/6999745 to your computer and use it in GitHub Desktop.
Save davidvandenbor/6999745 to your computer and use it in GitHub Desktop.
WordPress: Disable WP updates and plugin updates
<?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