Skip to content

Instantly share code, notes, and snippets.

@noellesteegs
Created August 3, 2020 12:52
Show Gist options
  • Save noellesteegs/8c9e07c38e7a9d56a8d70c04493da872 to your computer and use it in GitHub Desktop.
Save noellesteegs/8c9e07c38e7a9d56a8d70c04493da872 to your computer and use it in GitHub Desktop.
Edit WooCommerce add to cart button text
add_filter( 'woocommerce_product_add_to_cart_text', 'edit_add_to_cart_button_text' );
function edit_add_to_cart_button_text() {
return 'Buy now';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment