Skip to content Skip to sidebar

This topic contains 0 reply, has 1 voice.

Last updated by larissaT-3 4 months, 1 week ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
December 1, 2025 at 4:47 pm #17623524

larissaT-3

While adjusting this as you described I did encounter 1 other custom code string in the 'woocommerce' domain coming from the functions.php.
Is it possible, and could you help me to wrap this one as well in the 'shopkeeper-child-custom'?

// Change "Related Products Text"

add_filter('gettext', 'change_relatedproducts_text', 10, 3);

function change_relatedproducts_text($new_text, $related_text, $source)
{
if ($related_text === 'Related products' && $source === 'woocommerce') {
$new_text = esc_html__('You might also like...', $source);
}
return $new_text;
}

The topic ‘[Closed] Wrap a string’ is closed to new replies.