How to Enable Automatic Updates for WordPress Plugins

Recently one of our readers asked how they can automatically update WordPress plugins. Many users find it annoying that almost every other day they have to update a plugin. In this article, we will show you how to enable automatic updates for WordPress plugins. We will also show you how to exclude some plugins from automatic updates.

When and Why You Should Automatically Update WordPress Plugins?

By default WordPress can automatically update itself when a security or minor release is available. For major releases, you have to initiate the update yourself. You also have to install plugin and theme updates yourself.

Keeping your WordPress site updated is crucial for security and stability of your site. See our guide on why you should always use the latest version of WordPress.

Same goes for all plugins and themes installed on your website. You need to install updates for themes and plugins to get new features and fixes.

However, you may have noticed that some of them are updated more frequently than others. A lot of popular plugins are updated almost weekly.

Some users find it a bit distracting, that whenever they login there is an update available for one or more plugins.

What if you could allow trusted developers to auto-update plugins similar to WordPress.

Let’s take a look at how you can automatically update plugins in WordPress.

How to Automatically Install Updates for Some Plugins in WordPress

WordPress introduces automatic updates for WordPress plugins and themes in WordPress 5.5. This allows you to enable automatic updates for individual WordPress plugins and themes directly from your WordPress dashboard.

Enabling Auto Updates for Individual Plugins

Simply visit the Plugins Β» Installed Plugins page inside WordPress admin area. Here you’ll see the list of all your installed plugins with a link to β€˜Enable auto-updates’ next to each plugin.

You need to click on the β€˜Enable auto-updates’ link to turn on automatic updates for individual plugins.

Enabling Auto Updates for WordPress Themes

For WordPress themes, you need visit Appearance Β» Themes and click on the theme you want to automatically update.

This will bring up the theme information pop-up. From here, you can click on the β€˜Enable auto-updates’ link to turn on automatic updates for that theme.

That’s all. WordPress will now automatically update these plugins and themes whenever a new version is available. You’ll also get an email notification whenever a new update is installed on your website.

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 or a site-specific plugin.

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 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 the 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. For more detailed instructions see our guide on how to rollback WordPress plugins.

We hope this article helped you setup automatic updates for plugins in WordPress. You may also want to see our guide on how to enable automatic updates in WordPress for major releases.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Leave a Reply

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

error: Content is protected !!

Pin It on Pinterest

Add address