How to Update WooCommerce Extensions

How to Update WooCommerce ExtensionsDo you want to automatically update WooCommerce extensions? Read on, as we will show you how to achieve this. Recently, a client contacted us and they wanted to know if they could automatically update WooCommerce plugins. It can be very frustrating when you have to constantly update a plugin after each release.

By default, some WooCommerce extensions can automatically update themselves when it is a minor update or a security release. However, this is not the case with major releases. This means that you have to initiate the update yourself.

It is important to keep the WooCommerce extensions updated to get new features and fixes. This will ensure that your store will run smoothly. However, some extensions require to be updated almost weekly.

This can be a tedious task especially if you have to play some other role in your business.

How to Update WooCommerce Extensions

In this brief tutorial, we will show you how to automatically update WooCommerce extensions. We will also share a code snippet to enable automatic updates for your theme.

Let us see how you can achieve this.

Steps to Update WooCommerce Extensions

WordPress has a built-in option to automatically update plugins and themes. It was introduced in WordPress 5.5 and allows you to enable automatic updates for individual WordPress plugins and themes directly from the dashboard.

If you are familiar with handling code, you can use the alternative solution we will share. However, we recommend that you create a child theme before you proceed. This will ensure that your changes are not lost during an update.

Here are the simple steps you need to follow:

  1. Log into your WordPress site and access the Dashboard as the admin user.
  2. From the dashboard, navigate to Plugins > Installed Plugins.
  3. This will open a list of all the plugins you have installed on your site. Click on the ‘Enable auto-updates’ link next to each plugin to turn on automatic updates.auto updates
  4. Alternatively, click on Appearance Menu > Theme Editor Menu. When the Theme Editor page is opened, look for the theme functions file where we will automatically update all the plugins installed on your WooCommerce site
  5. Add the following code to the child theme’s php file:
[php]add_filter( ‘auto_update_plugin’, ‘__return_true’ );[/php]
  1. If you want to do the same for your themes, then you can add the following code in the same file:
[php]add_filter( ‘auto_update_theme’, ‘__return_true’ );[/php]

Conclusion

Updating WooCommerce extensions can be a tedious task. Remember to always update your site so that you can be able to revert to the previous version in case of any problem. You can use a plugin to automate the process for you.

However, you can use a plugin like WP Rollback that includes a rollback option for each plugin. We hope that this post helped you to automatically update the WooCommerce extensions and the theme installed on your site.

Similar Articles