Answers for "change "read more" on woocommerce button"

0

change "read more" on woocommerce button

add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) {
    if ( 'Read more' == $text ) {
        $text = __( 'More Info', 'woocommerce' );
    }

    return $text;
} );
Posted by: Guest on July-24-2020

Code answers related to "change "read more" on woocommerce button"

Browse Popular Code Answers by Language