How to Change Add To Cart button text in wooCommerce

Do you want to change the ‘Add to Cart’ button text in Woocommerce? Like you want to update the text from ‘Add to Cart’ to ‘Add to Basket’, ‘Buy Now’ or View Details then you just add below snippet into your theme’s functions.php file.

add_filter('single_add_to_cart_text', 'bpt_add_cart_button_text');
function bpt_add_cart_button_text() {
    return __('Buy Now', 'woocommerce');

Leave a Reply

Your email address will not be published. Required fields are marked *