Skip to content

Instantly share code, notes, and snippets.

@jameskoster jameskoster/functions.php
Last active Dec 16, 2015

Embed
What would you like to do?
WooCommerce - change add to cart button text on product archives
add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' ); // < 2.1
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +
function woo_custom_cart_button_text() {
return __( 'My Button Text', 'woocommerce' );
}
@Evgeny-Ru

This comment has been minimized.

Copy link

commented Aug 11, 2013

Is there some way to replace the "add to cart" button text by some Russian one (Russian text typed in Russian symbols)? The way described above gives the unrecognizable symbols.

@webprom

This comment has been minimized.

Copy link

commented Mar 8, 2014

Please help! How to change "select options" for variable products in new wc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.