Created
August 17, 2013 00:30
-
-
Save simonlk/6254626 to your computer and use it in GitHub Desktop.
Change add to cart button text on single product page.
For some reason it doesn't work if the text "Add to Cart" is used so double spacing makes it work. WTF.
This file contains hidden or 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 to cart button text */ | |
add_filter('single_add_to_cart_text', 'woo_custom_cart_button_text'); | |
function woo_custom_cart_button_text() { | |
return __('Add to Cart', 'woocommerce'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to change the text+to other URL?