Skip to content

Instantly share code, notes, and snippets.

@andrezrv
Last active December 26, 2015 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrezrv/7203739 to your computer and use it in GitHub Desktop.
Save andrezrv/7203739 to your computer and use it in GitHub Desktop.
Disable autoupdates in WordPress 3.7+.
<?php
# Disables all kind of file modifications:
# core, plugins and themes won't be auto-updated
# and file editors won't appear anymore in wp-admin.
define( 'DISALLOW_FILE_MODS', true );
# Disables all core updates:
define( 'WP_AUTO_UPDATE_CORE', false );
# Enables all core updates, including minor and major:
//define( 'WP_AUTO_UPDATE_CORE', true );
# Enables core updates for minor releases (default):
//define( 'WP_AUTO_UPDATE_CORE', 'minor' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment