Change The Add to Cart Button Text in WooCommerce

The default button on product previews, and the product page itself, says “Add to Cart”. That’s fine for most but sometimes you might want to change it to something like “Add” or “Buy”. You can change the add to cart button to say anything you want with the below code snippet.

function cart_button_text() {
	return 'Add';
}

add_filter('woocommerce_product_add_to_cart_text', 'cart_button_text');

Inspirational Newsletter


Join the newsletter to get the best articles, tutorials and exclusive freebies every two weeks.

No spam. You can unsubscribe at any time.