How to fix Gutenberg Editor broken on update to WooCommerce 7.7

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

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.

Comments

Leave a Reply

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

five × four =