Created
June 27, 2021 06:51
-
-
Save anik/3c6bd90af3c35d05f015ea4df8c5afc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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