WordPress 3.7 is the latest major WordPress release and brings with it a number of useful features to help improve the security and stability of the content management system. One feature you may noticed in “Basie” is the addition of automatic updates, or “updates while you sleep” as WordPress describes it.
With this feature in place, WordPress will be able to apply minor updates automatically without any work on your part. However, this feature is not for everyone. If you run a site for a client or like to oversee your updates, having that control taken away from you will be far from ideal. In this guide, we will show you how you can disable updates.
If, on the other hand, the auto update feature is to your liking, you may like to take things a step further by enabling auto updating for major WordPress releases – we will show you how to do that to!
Disabling auto updates
Disabling automatic updates in the latest version of WordPress is a fairly straightforward task that involves adding a line of code to the wp-config.php file.
To access the wp-config.php file, use your preferred FTP client or log in to your hosting account and locate the file within the WordPress root folder.
In the file, enter the following line of code:
define( 'WP_AUTO_UPDATE_CORE', false );
With the code in place, WordPress will no longer carry out auto updates. It will, however, continue to notify when a new release is available. For stability and security purposes, it is recommended that you update as soon as possible after a new release is made available.
Enabling automatic updates for major updates
If you are a more confident WordPress user and you are happy that your themes and plugins will be unaffected by a major update, you can switch on automatic updates for every release.
To do this, you simply need to add the following line of code to the wp-config.php file:
define( 'WP_AUTO_UPDATE_CORE', true );
From now on, you will never have to click on the Upgrade Now button again.
If you would prefer to stick to just the newest WordPress releases and not have the CMS update itself with every development update and nightly build, you should add the following line of code to the functions.php file in your theme:
add_filter( 'allow_dev_auto_core_updates', '__return_false' );
Remember that enabling automatic updates for major releases could have an effect on your theme or certain plugins that you have installed, which could result in conflicts that impact on the function of your site. Therefore, these steps are recommended for experienced WordPress users only.