Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created June 8, 2014 21:41
Show Gist options
  • Save claudiosanches/3d493aefd37beb5748de to your computer and use it in GitHub Desktop.
Save claudiosanches/3d493aefd37beb5748de to your computer and use it in GitHub Desktop.
WooCommerce - Change the product loop add to cart button text
<?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