Created
June 27, 2021 06:52
-
-
Save anik/eaa9f0016a715b10deafe5f380783a51 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 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