Skip to content

Instantly share code, notes, and snippets.

@bradleysa
Created April 22, 2022 08:27
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 bradleysa/ac9cfa264e9f38aa14117dd702592b66 to your computer and use it in GitHub Desktop.
Save bradleysa/ac9cfa264e9f38aa14117dd702592b66 to your computer and use it in GitHub Desktop.
Change 'add to cart' text on archive product page
// Change 'add to cart' text on archive product page
add_filter( 'woocommerce_product_add_to_cart_text', 'bryce_archive_add_to_cart_text' );
function bryce_archive_add_to_cart_text() {
return __( "That's My Jam!", 'your-slug' );
}
/** https://metorik.com/blog/change-the-add-to-cart-text-in-woocommerce **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment