Change default ‘Add To Cart’ button text in wooCommerce

When customizing WooCommerce, one thing you may want to change is the default “Add To Cart” text. For example, you may want to change the text to “Donate Now”, “Add Product”, “Buy”, or whatever you like. To change the “Add To Cart” text, add the following snippet to the functions.php file of your WordPress theme. Then, just change the “Add Item” text in the second line to whatever you want.

Code Snippet:

add_filter('single_add_to_cart_text', 'woo_custom_cart_button_text');

function woo_custom_cart_button_text() {
return __('Add Item', 'woocommerce');

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!