Skip to content

Instantly share code, notes, and snippets.

@anik
Created June 27, 2021 06:52
Show Gist options
  • Save anik/eaa9f0016a715b10deafe5f380783a51 to your computer and use it in GitHub Desktop.
Save anik/eaa9f0016a715b10deafe5f380783a51 to your computer and use it in GitHub Desktop.
// Change "Add to Cart" > "Add to Bag" in Shop Page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_shop_page_add_to_cart_callback' );
function woocommerce_shop_page_add_to_cart_callback() {
return __( 'Add to Bag', 'text-domain' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment