WordPress allows you to automatically update your WordPress plugins and themes and translations by adding some PHP constants and filters to your WordPress installation.
Setting up Automatic Update for All WordPress Plugins
You can set WordPress to automatically install all plugin updates by simply adding this code to your theme’s functions.php file that can be located in you /public_html/folder
|
1
|
add_filter( 'auto_update_plugin', '__return_true' ); |
This filter tells WordPress automatic updater to automatically install plugin updates when they’re available.
If you also want to automatically update your themes, then you can add another code like this:
|
1
|
add_filter( 'auto_update_theme', '__return_true' ); |
How to Automatically Install Updates for Some Plugins in WordPress
If there are a few plugins that are updated more frequently, then you may want to just enable automatic updates for those plugins.
Another situation is when you don’t want to update specific plugins.
Here is how you can include or exclude plugins from automatic updates.
First thing you need to do is install and activate the Automatic Plugin Updates plugin.
Upon installation, you need to visit Settings » Automatic Plugin Updates page to configure plugin settings.

You can select the plugins you don’t want to automatically update. You can also enable email notifications for Automatic updates. Once you are done, click on the save changes button to store your settings.
That’s all, the plugin will now automatically update all plugins except for the ones you have excluded.
Note If you are using this plugin, then you don’t need to use the previous method of adding auto_update_plugin filter.
How to Rollback to a Previous Version of Plugin After Update?
Plugin or theme incompatibilities can cause trouble for your website. Even though most good developers thoroughly test their plugins, there are always rare bugs that can cause your site to break.
The first step you should take to protect your website is to install a WordPress backup solution.
However, restoring your WordPress site from a backup seems like a lot of work. If you know what plugin or theme update caused the problem, then it would be easier to just rollback the update.
Here is how you can easily rollback plugin or theme updates. Simply install and activate the WP Rollback plugin.
Upon activation, go back to plugins page on your WordPress site. You will notice a new Rollback option below each plugin installed on your site.

Clicking on Rollback will allow you to rollback your plugin to any previous version you want. It can also rollback theme updates.