Skip to content

Instantly share code, notes, and snippets.

@sushidub
Last active October 11, 2018 18:48
Show Gist options
  • Select an option

  • Save sushidub/988b3cf766c7786212fc6b5852f3a917 to your computer and use it in GitHub Desktop.

Select an option

Save sushidub/988b3cf766c7786212fc6b5852f3a917 to your computer and use it in GitHub Desktop.
How to avoid Wordpress automatic updates

Wordpress Automatic Update settings

Paste the following into wp-config.php just above the /* That's all, stop editing! Happy blogging. */ comment at bottom of file. Uncomment whichever of the following rules you want automatic updates from Wordpress to follow.

// =========================
// Blanket disable every single type of automatic update
// =========================
// define( 'AUTOMATIC_UPDATER_DISABLED', true );

// =========================
// To only disable all core updates ( e.g. 4.5, 4.5.1, 4.8, 4.8.2, etc)
// =========================
// define( 'WP_AUTO_UPDATE_CORE', false );

// =========================
// To only disable major and development updates ( e.g. 4.5, 4.6. 4.7, etc)
// =========================
define( 'WP_AUTO_UPDATE_CORE', 'minor' ); // <---- Don't forget the quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment