How to change “add to basket” button text in WooCommerce based on product category?
You’re going to want to filter the text. here’s the function from core WC that builds that text. In both of these instances $this will be the product. /** * Get the add to cart button text for the single page. * * @access public * @return string */ public function single_add_to_cart_text() { return apply_filters( … Read more