Zum Inhalt springen Zur Seitenleiste springen
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 -

Supporter-Zeitzone: Europe/Vienna (GMT+01:00)

Dieses Thema enthält 0, hat 1 Stimme.

Zuletzt aktualisiert von larissaT-3 Vor 3 Monaten, 3 Wochen.

Assistiert von: Lucas Vidal de Andrade.

Autor Beiträge
Dezember 1, 2025 um 16: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;
}

Das Thema '[Geschlossen] Wrap a string' ist für neue Antworten geschlossen.