跳到内容 跳到侧边栏
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

支持人员时区: Europe/Vienna (GMT+02:00)

本主题包含 0 則回覆 ,有 1 声音 。

最后由 larissaT-3 4 months前 更新。

协助者:: Lucas Vidal de Andrade.

作者 帖子
2025 年 12 月 1 日 于 下午 4:47 #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;
}

主题'[關閉] Wrap a string'已关闭,不接受新回复。