Change the ‘add to cart’ text in WooCommerce

add_filter( 'woocommerce_product_add_to_cart_text', 'custom_add_to_cart_text' ); // category (archives)
add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_add_to_cart_text' ); // single
function custom_add_to_cart_text() { 
   return 'My add to cart text';
}

No comments yet.

Leave a Reply