MainWP Community

Change Read More Button Text in WooCommerce

Change read more button text in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) {
    if ( 'Read more' == $text ) {
        $text = __( 'Add to Cart', 'woocommerce' );
    }

    return $text;
} );
2 Likes