How to fix Gutenberg Editor broken on update to WooCommerce 7.7

summertime flag Smu1zO02Obo unsplash scaled Woocommerce
This article can be read in about 2 minutes.
Share This:

I was using Gutenberg with WooCommerce by following the instructions on How to enable Gutenberg Editor in WooCommerce, but after updating to WooCommerce version 7.7, I can no longer edit products. After investigating, I was able to resolve the issue by adding the following code to functions.php.

// Temporary Solution
add_filter('woocommerce_register_post_type_product', function( $args ) {
    unset( $args['template'] );
    return $args;
});
Woocommerce product tab locked Version 7.7.0
Woocommerce product tab locked Version 7.7.0 Resolved tamasfelix (@tamasfelix) 1 year, 11 months ago Hello, today I upda...

note: This appears to be a temporary solution only. You may need to remove this code in future WooCommerce versions.

Comment

Donate with Cryptocurrency!

Copied title and URL