If you read the admin dashboard of your WordPress install after upgrading the WordPress core, you might know a little about the New WordPress 3.7 auto updater. It comes with quite a few interesting features, including:
- Automatic updates
- Stronger passwords
- Better Global support
The purpose of this article is to talk about the WordPress 3.7 Auto Updater. Essentially, all maintenance and security updates will be applied to your WordPress install automatically, and they will run in the background (meaning your site won’t go offline while the update takes place). This is a great feature, because how often do you forget to apply the update to your WordPress? Now with security an issue, WordPress has promised that:
The update process also has been made even more reliable and secure, with dozens of new checks and safeguards.
This is great for patching security vulnerabilities quickly, but it doesn’t really go that far to helping you complete those standard maintenance tasks, like updating plugins or updating major versions of WordPress. Fortunately there are a couple of solutions:
- Autoupdater WordPress Plugin – We actually used this plugin for a long time. You simply install and choose whether to update plugins, themes (only official WordPress themes downloaded from the repository) and WordPress core. We never use to use it with Themes though, as we thing this is better done manually. You can download the plugin here.
- Manually altering the wp-config.php file to extend the new WordPress Auto updater functionality – Whilst the new updater only does minor updates (i.e. 3.7.1 – 3.7.2) as standard, it is interesting to note that this functionality can be extended to plugins, themes as well.
Configuring the WordPress Auto Updater by changing the wp-config.php file
The default setting – Update all minor versions of WordPress Core
If you have already updated to WordPress 3.7 or later there is nothing needed to do in order to allow the auto-updating of all minor versions of WordPress. These updates commonly contain security releases and are the most stable, so we recommend you keep this enabled:
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
Changing the Settings
Simply replace the code above with add the snippets below in wp-config.php file to enable the different type of updates:
Enable All Updates: Development, Major and Minor releases
This is probably the option you would most likely want if you just want to keep everything updated. This is probably most suitable for personal blogs so you can ensure that your site is updated for every release possible. One of the lead developers of WordPress, saw you coming, and wrote a detailed guide about disabling the new WordPress 3.7 Auto Updater here. We highly recommend you read it before configuring this option.
Enable Plugin Updates
If you prefer to manage the updates of the WordPress Core yourself, but want all the plugins to be automatically updated you can add this code to your wp-config.php file.
add_filter( 'auto_update_plugin', '__return_true' );
Enable themes updates
Again, if you want to have more control of what is updated automatically with the new WordPress 3.7 Auto Updater you can add the following code to auto update any themes. This one actually is quite useful, but we would recommend you use a child theme if you go down this route if you have made many modifications to your theme files.
add_filter( 'auto_update_theme', '__return_true' );
To disable the Automatic Updater completely
Whilst we would not recommend it, sometimes you may not wish to have your site automatically updated at all, and prefer to update in a more controlled manor yourself.
define( 'AUTOMATIC_UPDATER_DISABLED', true );
Sorry to scare monger you abit, but perhaps you already know exactly what we are talking about. You have just finished upgrading all your plugins, and all of a sudden you get the “white screen of death”, or errors popping up over your WordPress Install or maybe even that slider or some other functionality has stopped working. Did you take a backup? Sure, your host probably has one, but did you just do some work prior to the upgrades that may be lost? Does your host charge to recover backups? How long will it take to sort out? Can you afford the downtime?
Well this kind of thing has happened to us before. A couple of years back, our host even said that the earliest backup they had was 3 weeks old. Pretty poor for a host that advertises nightly backups right?
So what is the solution?
Ultimately, you would need to do all your upgrades manually after taking a full backup of your site. Ouch. To be honest, manual updates on complicated sites are sometimes the best way. Make sure you have taken a backup (cPanel normally allow you to instigate a backup, so at least you have an up to date copy your host can restore). This can be a pain though, and quite often people don’t log into their WordPress dashboard for weeks at a time, so sometimes there is a need for a better solution.
Some Managed WordPress hosts will take care of the management of your WordPress sites for you, upgrading your plugins, and taking backups and generally making sure everything runs smoothly. The problem is they are often restrictive on what plugins you can use, and charge a lot more.
Another option is going with a company such as SiteGround (see below).
SiteGround’s own unique auto updater
SiteGround have built their own auto updating system themselves, and we have been using it ourselves for some time. Their updater has the following process:
- Warns you about upcoming updates
- Backs up your website
- Updates WordPress Core – both minor and major updates
- Updates your plugins
The really great thing about this, is their easy to use interface to set all this up, and the ability to quickly restore your site should anything go wrong with a simple click of a button. They have a great tutorial on the process which you can check out here, but we have included a couple of screenshots from their tutorial below for ease of reference.