Woocommerce – change the text of “Add to cart” button

With Content Views Pro, you can show products of Woocommerce easily. And with each product, you can show the Add-to-cart button with single click option.
If you want to change the text of “Add to cart” button of Woocommerce, please add this code to file functions.php of your active theme:

// CVP - change the text of "Add to cart" button of Woocommerce
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); // 2.1 +
function woo_archive_custom_cart_button_text() {
	return __( 'My Button Text', 'woocommerce' );
}

Best regards,

Scroll to Top