Code Snippet and Easy Updates Manager
-
Hello!
I found on YT – https://www.youtube.com/watch?v=SaPdeKlqf1o this code snippet for Gutenberg blocks in Woocommerce:
// enable gutenberg for woocommerce
function activate_gutenberg_product( $can_edit, $post_type ) {
if ( $post_type == ‘product’ ) {
$can_edit = true;
}
return $can_edit;
}
add_filter( ‘use_block_editor_for_post_type’, ‘activate_gutenberg_product’, 10, 2 );// enable taxonomy fields for woocommerce with gutenberg on
function enable_taxonomy_rest( $args ) {
$args[‘show_in_rest’] = true;
return $args;
}
add_filter( ‘woocommerce_taxonomy_args_product_cat’, ‘enable_taxonomy_rest’ );
add_filter( ‘woocommerce_taxonomy_args_product_tag’, ‘enable_taxonomy_rest’ );This code works fine with Code Snippet but – Product Short Description (graphic editor) is broken when is Easy Updates Manager activated. How to resolve this? Thanks.
Best regards,
R.
The topic ‘Code Snippet and Easy Updates Manager’ is closed to new replies.