Why You Should Wait to Update to WooCommerce 4.0

Heads up: This page may include affiliate links. Read the full disclosure.

WooCommerce 4.0 was released on the 10th March. It is a major new release and the two major changes are the merging of the WooCommerce Admin and updating the Action Scheduler to version 3.1.

The WooCommerce Admin has existed as a featured plugin since April 2019. The WooCommerce Admin uses code now in WordPress 5.3 to be able to use React for powering some of the UI elements. The WooCommerce Admin uses a number of custom database tables in order to store the analytics data in those lookup tables in order to improve the reporting that is included in WooCommerce. Elements of the WooComerce Admin will be used to change the UI and UX of the rest of WooCommerce sections like products and orders over future releases.

There is a filter included in the WooCommerce core plugin which will allow the WooCommerce Admin to be disabled on a site. You can use the MainWP code snippets extension to activate the code snippet on all connected child sites which have WooCommerce active on them.

add_filter( ‘woocommerce_admin_disabled’, ‘__return_true’ );

If you have the code snippet in place on those child sites when you update WooCommerce to version 4.0 then the WooCommerce Admin database tables will not be created.

wp_wc_admin_notes
wp_wc_admin_note_actions
wp_wc_category_lookup
wp_wc_customer_lookup
wp_wc_order_coupon_lookup
wp_wc_order_product_lookup
wp_wc_order_stats
wp_wc_order_tax_lookup

The WooCommerce Admin is a good idea and overtime will be more performant based. As it stands in WooCommerce 4.0.0 release the release has a number of bugs includes issues still related to high CPU usage and other performance issues.

The database upgrade which adds a new database table related to the WooCommerce Admin as well as the custom database tables that the Action Scheduler now uses. The process can be slow to run and in a number of cases a missing database tables or multiple missing database tables will result in the site having a fatal error.

wp_actionscheduler_actions
wp_actionscheduler_claims
wp_actionscheduler_groups
wp_actionscheduler_logs

It is recommended to wait until WooCommerce 4.0.1 is released. Then to make sure to test updating WooCommerce on a staging site since it is a major release.

Comments are closed.

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.