I am trying to exclude/disable a shortcode that I've added to the Single Product Template of woocommerce for specific product categories.
The code in functions.php is this:
add_action( 'woocommerce_single_product_summary', 'sizeguidemen', 20 );
function sizeguidemen() {
echo do_shortcode('[elementor-template id="66083"]');
}
How can we exclude/disable the shortcode for specific product categories?
I believe it should be something with array( 'product_cat', '65' );?
I'm new to php and trying to do it, but doesn't work. :/