Skip to content

Instantly share code, notes, and snippets.

@lukearmstrong
Created May 22, 2017 10:10
Show Gist options
  • Save lukearmstrong/b906c05ec422871a287d90a4d3cadf2f to your computer and use it in GitHub Desktop.
Save lukearmstrong/b906c05ec422871a287d90a4d3cadf2f to your computer and use it in GitHub Desktop.
Disable WordPress Updates
if (ENVIRONMENT != 'development') {
define('AUTOMATIC_UPDATER_DISABLED', true); // Disable Automatic Updates
define('WP_AUTO_UPDATE_CORE', false); // Disable WordPress Core Automatic Updates
define('DISALLOW_FILE_EDIT', true); // Disable the Plugin and Theme Editor
define('DISALLOW_FILE_MODS', true); // Disable Wordpress, Plugin and Theme Installation and Updates
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment