Hello,
After updating pro theme to the latest version my code in child theme functions.php does not work anymore to translate woocommerce terms and conditions checkbox text.
The code, which worked before the update:
// =============================================================================
add_filter(‘gettext’, ‘translate_texts’);
function translate_texts($translated) {
$translated = str_ireplace(‘I’ve read and accept the terms & conditions’, ‘Perskaičiau ir sutinku su sąlygomis ir taisyklėmis’, $translated);
return $translated;
}
// =============================================================================
Probably in the latest updates you changed some keywords?
Regards,
Lukas