Created
June 8, 2014 21:41
-
-
Save claudiosanches/3d493aefd37beb5748de to your computer and use it in GitHub Desktop.
WooCommerce - Change the product loop add to cart button text
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
<?php | |
function custom_woocommerce_product_add_to_cart_text( $text ) { | |
return __( 'Novo texto do botão' ); | |
} | |
add_filter( 'woocommerce_product_add_to_cart_text', 'custom_woocommerce_product_add_to_cart_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment