Created
November 30, 2012 13:40
-
-
Save claudiosanches/4175790 to your computer and use it in GitHub Desktop.
WooCommerce - Alter add to cart text
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
/** | |
* Alter add to cart text. | |
* | |
* @return string New text. | |
*/ | |
function alter_add_to_cart_text() { | |
return __( 'Orça' ); | |
} | |
add_filter( 'single_add_to_cart_text', 'alter_add_to_cart_text' ); | |
add_filter( 'variable_add_to_cart_text', 'alter_add_to_cart_text' ); | |
add_filter( 'grouped_add_to_cart_text', 'alter_add_to_cart_text' ); | |
add_filter( 'external_add_to_cart_text', 'alter_add_to_cart_text' ); | |
add_filter( 'add_to_cart_text', 'alter_add_to_cart_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment