Created
April 22, 2022 08:26
-
-
Save bradleysa/7a984fb4fe3f04942a2ee264177fed37 to your computer and use it in GitHub Desktop.
WC: Change 'add to cart' text on single product page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_add_to_cart_text'); | |
function woocommerce_custom_add_to_cart_text() { | |
return __("That's My Jam!", 'woocommerce'); | |
} | |
/** https://avada.io/woocommerce/docs/change-add-to-cart-button-text.html **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment