Skip to content

Instantly share code, notes, and snippets.

@anik
Created June 27, 2021 06:51
Show Gist options
  • Save anik/3c6bd90af3c35d05f015ea4df8c5afc7 to your computer and use it in GitHub Desktop.
Save anik/3c6bd90af3c35d05f015ea4df8c5afc7 to your computer and use it in GitHub Desktop.
// Change "Add to Cart" > "Add to Bag" in Single Page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_single_page_add_to_cart_callback' );
function woocommerce_single_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