Methods To Enable Automatic Updates For WordPress Plugins

Automatic Updates For WordPress Plugins

Recently, one of our readers asked that how they can enable automatic updates for WordPress plugins. Many of the users find it so irritating that almost every other day they have to update a WordPress plugin. In this post, we will show you how to enable automatic updates for WordPress plugins. Also, we will also show you how to exclude few plugins from automatic updates.

Continue Reading:

Why You Should Enable Automatic Updates For WordPress Plugins

By default the WordPress can automatically update itself when the security or minor release is available. For the major releases, you have to initiate the update by yourself. Also, you have to updates the installed plugins and themes by yourself. However, keeping your WordPress website updates is crucial for the security and the stability of your domain. Same goes for all the plugins and the themes installed on your site. You need to install the updates for themes and the plugins in order to get new features and the fixes. Although, you may have noticed that some of them are updated more frequently than others. A lot of famous plugins are updated almost weekly.

Automatic Updates For WordPress Plugins

Resource Link:

Some of the WordPress users find it bit distracting that whenever they login to their websites, there is an update available for one or more plugins. What if you could allow the trusted developers to auto-update the plugins which is similar to the WordPress. Lets take a look at how you can enable automatic updates for WordPress plugins.

How To Setup Automatic Updates For All WordPress Plugins

  • You can set the WordPress to automatically install all the plugins updates by simply adding this code onto your theme’s functions.php file or a site-specific plugin.

1. add_filter( ‘auto_update_plugin’, ‘__return_true’ );
  • This filter tells the WordPress automatic updater to automatically install the plugin updates when they are available.

  • Also, if you want to automatically update your themes, then you can add another code like this:

2. add_filter( ‘auto_update_theme’, ‘__return_true’ );

Instructions To Automatically Installs Updates For WordPress Plugins

If there are some plugins that are updated more frequently, then you want to just enable an automatic updates for those WordPress plugins. Another situation is when you do not want to update few specific plugins. Here is how you can include or exclude the plugins from automatic updates:

  • The very first thing that you need to do is to install and activate an “Automatic Plugin Updates” plugin. Upon installation, you need to visit the “Settings >> Automatic Plugin Updates” page in order to configure the plugin settings.

Automatic Updates For WordPress Plugins

For More Info:

  • Now, you can select the plugins that you do not want to automatically update. Also, you can enable email notification for an Automatic Updates. Once you’re done, tap on the save changes icon to store your settings.

That’s all, the plugin will now update all the plugins automatically except for the ones that you have excluded. However, If you are using this plugin, then do not need to use the previous method of adding auto_update_plugin filter.

How Can You Rollback To a Previous Version of Plugin After Updation

Plugin or theme incompatibilities can cause trouble for your WordPress site. Even though most of the good developers thoroughly test their plugins, there are always some rare bugs that can cause your website to break. The very first step that you should take to secure your WordPress site is to install a WordPress backup solution. However, restoring your WordPress website from a backup seems like a lot of work. If you know that which plugin or theme update caused the issue, then it would be so easier in order to just rollback the update. Here is how you can easily rollback the plugins or theme updates:

  • First of all, simply install and activate the WP Rollback plugin. Upon the activation, go back to the plugin page on your WordPress website. Then after, you will notice a new Rollback option below each plugins installed on your website.

Automatic Updates For WordPress Plugins

Reference Link:

  • Clicking on Rollback will allow you to rollback your plugins to any previous version that you want. Also, it can rollback the theme updates.

Well, we hope this post helped you to setup an automatic updates for WordPress plugins.

Leave a Reply

Your email address will not be published. Required fields are marked *