Created
May 10, 2023 21:26
-
-
Save lukecav/8726b6868a6d429d60f087a2c4462e6c to your computer and use it in GitHub Desktop.
Fix the product tab is locked issue in WooCommerce 7.7.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reset_product_template( $post_type_args ) { | |
if ( array_key_exists( 'template', $post_type_args ) ) { | |
unset( $post_type_args['template'] ); | |
} | |
return $post_type_args; | |
} | |
add_filter( 'woocommerce_register_post_type_product', 'reset_product_template' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wordpress.org/support/topic/woocommerce-product-tab-locked-version-7-7-0/
https://wordpress.org/support/topic/site-doesnt-include-support-for-the-woocommerce-product-tab-block/