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.

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;
});

https://wordpress.org/support/topic/woocommerce-product-tab-locked-version-7-7-0

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