How to change "add to basket" button text in WooCommerce based on product category?
I've created CPT with my events and for each event I've created individual product in WooCommerce. Now I'm using this shortcode in my code
?php echo do_shortcode('[add_to_cart id="'.get_field('event_ticket').'" show_price = "FALSE"]'); ?
for displaying "add to basket" button placed on each event. Every event have Product Category "event" and now I want change default text on "add to basket" button, but only for those products which have 'event' Product Category.
How can I do that?
Topic woocommerce-offtopic Wordpress
Category Web