Skip to content

Instantly share code, notes, and snippets.

@brandalismo
Created March 21, 2017 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandalismo/2c1f9ab9bd6f75c6334332525796a35b to your computer and use it in GitHub Desktop.
Save brandalismo/2c1f9ab9bd6f75c6334332525796a35b to your computer and use it in GitHub Desktop.
/*
* PERSONALIZAR TEXTO DEL BOTÓN AÑADIR AL CARRITO
*/
function woo_custom_cart_button_text() {
return __( 'COMPRAR', 'woocommerce' ); // Sustituir COMPRAR por la acción a indicar
}
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_cart_button_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment