Last active
December 20, 2015 02:09
-
-
Save claudiosanches/6053966 to your computer and use it in GitHub Desktop.
WooCommerce - Loop add to card 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
<?php | |
/** | |
* Add to card text | |
* | |
* @param string $text Default text. | |
* | |
* @return string New text. | |
*/ | |
function cs_woocommerce_product_add_to_cart_text( $text ) { | |
return __( 'Novo texto do botão' ); | |
} | |
add_filter( 'woocommerce_product_add_to_cart_text', 'cs_woocommerce_product_add_to_cart_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment