Answers for "woocommerce product related change button text"

0

woocommerce change related products tect

// CHANGE RELATED PRODUCTS TEXT
function my_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
        case 'Related products' :
            $translated_text = __( 'You may also like...', 'woocommerce' );
            break;
    }
    return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
Posted by: Guest on July-21-2020
-1

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 "woocommerce product related change button text"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language