If there’s one piece of advice in the world of WordPress for site owners, it’s this: update, update, update. Updating WordPress is easy in theory, especially since all site-owners receive notifications about core and plugin updates. When it has to be put into practice, though, updating WordPress is its own beast. Not only might updates break WordPress websites; they might also cause incompatibilities, and be impossible to undo as well. This is why it’s important to always have a reliable backup solution for WordPress websites.
Updating WordPress is an important task though, because of new features that might impact user experience, but also security updates that help against major vulnerabilities. However, with WordPress receiving updates very frequently on the Core as well as the add-on front, it is difficult to keep up with all the changes and apply them. This is why auto updates on WordPress websites might be a workable solution for you as a WordPress site owner.
In the rest of the post, we’ll talk about:
- What Does it Mean to ‘automate’ WordPress Updates?
- What are the different types of WordPress Updates?
And, also learn how to enable automatic WordPress updates:
What Does it Mean to ‘automate’ WordPress Updates?
Ever since version 3.7 (a previous version), WordPress has allowed security and translation file updates to happen in the background of every default installation, but this doesn’t include major releases and add-on updates… Which means a huge chunk of updates is still not performed. This is why choosing to perform automated updates on your WordPress blog is a tempting choice. Moreover, it’s an option that can be carried out in a number of ways. It means every update on your site would happen automatically. You wouldn’t be shown notifications, wouldn’t need to click on ‘update’ everywhere, and you can stay at peace.
Types of WordPress Updates
While updates for WordPress add-ons have both developmental as well as security updates, updates for WordPress core perform different functions. Based on these functions, WordPress Core updates can be categorized into:
- Release updates, which contain both Major and Minor releases.
- Major updates contain developmental changes including the addition of new features, or changes to core technologies on WordPress. Every major release is named after a major jazz musician.
- Minor updates contain WordPress security patches and fixes. As a result, they are highly recommended and are automated by default on every installation of WordPress. Every WordPress site is recommended to run these updates since they contain important security updates that keep your websites safe.
- Developmental updates, which are only for the changes that might be unstable– these updates are what future developments are built on. Also known as ‘bleeding edge’ updates, they are only meant for sites running the developmental version of WordPress.
- Translation updates (which are language packs), and come in handy if your WordPress site has multilingual support.
Depending on your comfort-level with code, and the time you’re willing to spend maintaining your site, you could automate your WordPress site’s updates manually, with the help of a plugin, or via managed WordPress services. Every method has its pros and cons, so it’s best to choose one with careful thought.
Automating WordPress Updates the Manual Way
This method will require you to make changes to your WordPress installation’s core files.
How to automate updates to WordPress Core the Manual Way
Updating WordPress Core includes making changes to the wp-config.php file. WordPress contains a parameter called
define ( 'WP_AUTO_UPDATE_CORE') in the wp-config file. The value you assign this function determines the WordPress release update is automated.
To Automate All WordPress Core Updates
Assign the value ‘true’ to the above function, as demonstrated:
define( 'WP_AUTO_UPDATE_CORE', true ); This will enable the automation of all release updates, developmental updates, and translation files updates on your WordPress site.
To Only Automate WordPress Core Minor Release Updates
As mentioned, WordPress automatically makes Minor release and translation updates to your site. However, if you completely disable WordPress automatic updates by assigning the above function the value ‘false, you will have disabled Minor updates too. Just assign the value minor to the same function above, instead of true. This will disable updates except for Minor updates, which keep your WordPress site secure. Here’s how you do it:
define( 'WP_AUTO_UPDATE_CORE', minor );
How to Automate Updates to WordPress Add-ons the Manual Way
Automatically updating add-ons isn’t recommended by WordPress, since the developers’ updates might work for that plugin/theme, but might be incompatible with other add-ons or elements on your WordPress site. However, if your WordPress site is simple and has very few plugins/themes that are compatible with each other, it might not be as big a problem. In order to manually configure your installation of WordPress to auto update plugins and themes, you have to make modifications to a filter called auto_update_$type, found in the wp-admin folder. The value assigned to $type determines which WordPress add-on is updated automatically. To automatically update all plugins on your WordPress site, the filter must read:
add_filter( 'auto_update_plugin', '__return_true' ); To automatically update all themes on your WordPress site, the filter must read:
add_filter( 'auto_update_theme', '__return_true' );
Pros of Manual Automation of Updates
- The code isn’t complex, so it’s beginner friendly.
- Manual automation is free.
- WordPress site owners won’t have to install an extra plugin just to keep their site up to date.
Cons of Manual Automation of Updates
- The changes have to be made to the WordPress wp-config.php files and the wp-admin folder. This might make some WordPress users uncomfortable, especially since changes to the WordPress core files are not recommended.
- Making the changes to code might require some time, especially for WordPress novices.
- If your site crashes with any update, you will have to check your site’s status after disabling each update manually.
Automating Your WordPress Site with Plugins
This method comes in handy for WordPress site-owners who do not want to tinker with the code themselves and don’t mind installing an extra plugin on their site. A couple of examples of WordPress plugins that help automate updates, are Advanced Automatic Updates, and WP Updates Settings. Below is step by step guide on how to use these two WordPress update plugins.
How to Use the Advanced Automatic Updates WordPress Plugin
1: Install and activate the Advanced Automatic Updates plugin.
2: Locate the plugin under your WordPress site’s Settings tab, and click on it.
3: Check the kind of updates you would like to automate on your WordPress site.
If you would like to send notifications about these updates to other than the one of the site owner, you can enter it here:
As you can see, you can also disable email notifications about the same, and request for debug information (in case you’re running development updates).
How to Use the WP Updates Plugin
1: Install and activate the WP Updates Settings plugin.
2: Just like for the WordPress Automatic Updates plugin, locate the Updates tab under your Settings tab, and click on it.
3: Choose the kind of WordPress Core release updates you would like to automate on your WordPress site.
4: Choose whether you would like add-ons on your WordPress site to be automatically updated.
5: If you’d like translation and developmental updates, click on the appropriate check-boxes.
Pros of Automating Your WordPress Updates With a Plugin
- These plugins do the work for you: you don’t have to manually tinker with any code; they’ll do it for you.
- Most plugins that automate WordPress websites allow you to enable or disable WordPress updates with a single click.
Cons of Automating Your WordPress Updates With a Plugin
- This will require you to install an extra plugin just for updating your WordPress site.
- Some plugins only update WordPress core, while others will allow you to update add-ons as well.
- You, as a WordPress site owner, will still need to weed out problems if your site crashes with updates.
Using Managed Services to Automate Your WordPress Site
There are two types of managed services you could use to automate updates on your WordPress site: managed WordPress hosting, and WordPress support and maintenance services.
Managed WordPress Hosting
These services help manage your WordPress site’s hosting issues, as well as a few issues related to your WordPress site as well. A couple of examples of managed WordPress hosting services/ managed WordPress hosting providers are Flywheel and WP Engine. These services automate the update of your entire WordPress site, but after the following steps meant to benefit you no matter the state of compatibility of your WordPress site:
- The hosting provider checks their systems for compatibility with WP updates (whether this includes both core and add-on updates depends on the web host).
- They then mail you beforehand with the dates for your WordPress site’s update.
- Every managed hosting service performs a backup of your WordPress site before the update. Only after this do they perform the update.
- Once they perform the update, they check for issues.
- If your WordPress site is not compatible with the update, the managed hosting provider restores your site with the backup that they made.
- The service then emails you about the status of the update (successful/unsuccessful, and reasons if unsuccessful).
- If you’ve tested your site and found it incompatible, you can ask certain web hosting services to postpone updates till you fix the issue at hand.
Notes: Plugin or theme updates are not done automatically by managed WordPress hosting services, simply because different plugins or themes have settings that might conflict with each other and break your site. If you’d still like to automate the updates of add-ons, you can get in touch with your WordPress host about the same. Since each managed hosting service has different terms and conditions, and pricing plans, we recommend that you read their documentation carefully, and then get in touch via email or from their in-website chat support.
Pros of Using a Managed Web Hosting Service With Automatic WordPress Updates
- You, as a WordPress site owner, don’t have to fiddle with the WordPress core files.
- Your WordPress hosting service tests and runs WordPress updates for you.
Cons of Using a Managed Web Hosting Service With Automatic WordPress Updates
- Managed WordPress hosting comes at a price.
- These services don’t take care of all the issues that might come up during updating your WordPress site. If your site has certain customizations that make it incompatible with WordPress updates, these services might mail you asking for you to seek a professional developer’s assistance. This means even if you’re paying a premium price for managed hosting, you might also have to hire a WordPress developer separately.
WordPress Support and Maintenance Services
WordPress support and maintenance services (such as WP Curve, WP Maintainer, and Valet), are perfect for super-busy site owners who can afford to have a full-time service just for maintaining their sites. In terms of updates and maintenance, these services usually perform the following functions:
- Core and add-on updates.
- Support/repairs in case of incompatibility.
- Audit of the maintenance and security of your site so the chances of it breaking upon update are reduced.
- Regular backups to rely on in case of incompatibility with an update.
Similar to managed WordPress hosting services, it is recommended that you should go through the list of their offerings, (and their pricing plans) carefully. All you have to do after that is contact them over email, or from their respective websites.
Pros of Depending on WordPress Support and Maintenance Services
- Since you are paying these services specifically to maintain your WordPress site, you can expect them to solve any problems you might have while updating your WordPress site.
- You do not need to hire a developer to this end.
Cons of Depending on WordPress Support and Maintenance Services
- These services come at a premium price, and usually, require you to pay more in order to fix issues that might come up during updates. Each service has its own pricing plan.
- A number of maintenance and support services do not provide free support, so if you run into issues with your site, it might be expensive to get them sorted out.
Automatic updates for WordPress plugins might seem like an easy fix that will help your WordPress site stay up to date with security patches and new features, but it also comes with many caveats. Not only might update your site break, but they might also be difficult to undo. This is why it is imperative for every WordPress site owner to maintain a recent, secure backup of their WordPress websites that can be relied on.