Home / Admin / Button – Read More to Buy Now
Duplicate Snippet

Embed Snippet on Your Site

Button – Read More to Buy Now

changes read more to buy now

Carla Mawyin
<10
Code Preview
php
<?php
add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) {
    if ( 'Read more' == $text ) {
        $text = __( 'Buy Now', 'woocommerce' );
    }
    return $text;
} );

Comments

Add a Comment