Skip to content

Instantly share code, notes, and snippets.

@fender841
fender841 / gist:5255958
Last active December 15, 2015 11:49
Changing add_to_cart button text on single product pages and category view pages.
//For changing add-to-cart button text on single product pages.
add_filter('single_add_to_cart_text', 'single_cart_button_text', );
function single_cart_button_text() {
return __('Add to order', 'woocommerce');
}
//For changing add-to-cart button text on category view pages