How to Enable Automatic Updates for WordPress Plugins- Best Guide
- Last Updated: Sep 15th, 2018
- Posted by: Editor
- Category: WordPress Knowledge
Do you wish to know how you can enable automatic updates for WordPress plugins? A lot of users find it troublesome that they have to update the plugin almost every other day.
Here, In this post, we will illustrate you how you can enable automatic updates for WordPress plugins. And also show you how to exclude some plugins from automatic updates.
When and Why Should You Update WordPress Plugins Automatically?
WordPress can be updated itself automatically by default when a security or minor release is available. For major releases, you need to start updating yourself. Also, you need to install plugins and theme updates yourself.
Updating your WordPress website is important for the security and stability of your site.
This is also for all the plugins and themes installed on your website. You will have to install updates for the themes and plugins to get new features and fixes.
However, you may have noticed that some of them are updated more frequently than others. Many popular plugins are updated almost weekly.
A few users find it a bit distracting, that whenever they log in, an update is available for one or more plugins.
What if you can allow trusted developers to auto-update the plugin like WordPress.
Let’s see how to automatically update plugins in WordPress.
Setting up Automatic Update for All WordPress Plugins
However, you can set up WordPress to install all the plugin updates automatically by adding this code to functions.php your theme file or site-specific plugin.
|add_filter( ‘auto_update_plugin’, ‘__return_true’ );|
This filter asks the WordPress automatic updater to install plugin updates automatically when they are available.
Also, if you wish to update your themes automatically, then you can add another code like this:
|add_filter( ‘auto_update_theme’, ‘__return_true’ );|
How to Automatically Install Updates for Some Plugins in WordPress
If there are some plugins that are updated more frequently, then you want to enable automatic updates for those plugins.
Another situation occurs when you do not want to update specific plugins.
Here’s how you can exclude or include the plugin with automatic updates.
After activation, you have to go to Settings>>Automatic plugin updates page to configure the settings of the plugin.
You can choose the plugins that you don’t want to update automatically. Also, you can enable email notifications for automatic updates. Once completed, click the Save Changes button to store your settings.
Now, the plugin will update automatically all the plugins except for the one that you skipped.
Note: If you are using this plugin, you do not need to use the previous method of adding auto_update_plugin filters.
How to Rollback to a Previous Version of Plugin After Update?
Plugin or theme inconsistencies can cause problems for your site. Although most good developers fully test their plugins. But there are always rare bugs that can cause your site to break.
The first step to protect your website is to install a WordPress backup solution.
However, restoring your WordPress website to backup seems like a lot of work. If you know that the plugin or theme update has caused the problem, rollbacking the update will be easy.
Here’s how you can easily update the rollback plugin or theme. Just install and activate WP Rollback plugin.
After activation, go back to the plugins page on your website. You will see a new rollback option below each plugin installed on your site.
By clicking on Rollback, you can rollback your plugin to any previous version. It can also rollback theme updates.
Here, in this post, we have discussed a complete guide on How to Enable Automatic Updates for WordPress Plugins? Often, we concluded When and Why Should You Update WordPress Plugins,
We hope this blog helped you enable automatic updates. If you have any problem with enabling this, tell us in the comments section provided below.
If you liked this post, please share it with your peers.
Thanks for visiting us. For more help on any other issues talk to our WordPress Support team to get instant advice & support, Dial +1 888 614 0555 (Toll-Free) to avail our WordPress security services.