Change ‘You may also like’ and ‘You may be interested in’ WooCommerce text

The text strings ‘You may also like’ and ‘You may be interested in’ in WooCommerce can be changed with the gettext filter…

 

add_filter( 'gettext', 'bt_translate_like' );
add_filter( 'gettext', 'bt_translate_like_cart' );
/**
 * @snippet       Trsnslate "You may also like..." Text - WooCommerce
 * @how-to        Watch tutorial @ https://businessbloomer.com/?p=19055
 * @sourcecode    https://businessbloomer.com/?p=595
 * @author        Rodolfo Melogli
 * @testedwith    WooCommerce 3.5.1
 */
function bt_translate_like( $translated ) {
	$translated = str_ireplace('You may also like…', 'Complete the look ', $translated);
	return $translated;
}
 
function bt_translate_like_cart( $translated ) {
	$translated = str_ireplace('You may be interested in…', 'Complete the look… ', $translated);
	return $translated;
}


Change to your desired text by changing the text in the second part of the single quoted string – in the above it is ‘Complete the look…’

ref

1 Comments

  1. Abby Buzon on October 13, 2020 at 3:11 pm

    THANK YOU!!

Leave all Comment