How to enable/disable WordPress Automatic Updates

It is easy to turn WordPress to update automatically.

The core developers made a conscious decision to enable automatic updates for minor releases and translation files out of the box. Going forward, this will be one of the best ways to guarantee your site stays up to date and secure and, as such, disabling these updates is strongly discouraged.
 
Simply add below line of code into your wp-config.php file.
 
define( 'AUTOMATIC_UPDATER_DISABLED', true );
 
To enable automatic updates for major releases or development purposes, the place to start is with the WP_AUTO_UPDATE_CORE constant. Defining this constant one of three ways allows you to blanket-enable, or blanket-disable several types of core updates at once.
 
define( 'WP_AUTO_UPDATE_CORE', false );
 
WP_AUTO_UPDATE_CORE can be defined with one of three values, each producing a different behavior:
  • Value of true – Development, minor, and major updates are all enabled
  • Value of false – Development, minor, and major updates are all disabled
  • Value of 'minor' – Minor updates are enabled, development, and major updates are disabled

Add Feedback