Created
October 30, 2023 10:31
-
-
Save SirDarcanos/0820c7edc89e819a96c17396501f8d29 to your computer and use it in GitHub Desktop.
Change the “Add to Cart” text on the single product page
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
<?php | |
// Change add to cart text on single product page | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'change_add_to_cart_text' ); | |
function change_add_to_cart_text() { | |
return 'Add to Bag'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment