Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Last active December 20, 2015 02:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save claudiosanches/6053966 to your computer and use it in GitHub Desktop.
Save claudiosanches/6053966 to your computer and use it in GitHub Desktop.
WooCommerce - Loop add to card text
<?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