Skip to content

Instantly share code, notes, and snippets.

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 mitchellkrogza/256752f63b60986908b72ef30f01d6e4 to your computer and use it in GitHub Desktop.
Save mitchellkrogza/256752f63b60986908b72ef30f01d6e4 to your computer and use it in GitHub Desktop.
Woocommerce Change Add to Cart Button Text
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' );
function woocommerce_custom_single_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment