I think I know how you can do it:
If you add this to wp-sendfox.php:
if (function_exists('pll_register_string')) {
pll_register_string('checkoutlabel', 'subscribe to our newsletter');
}
and then add change to this where you use the string:
$form['label'] = pll__('subscribe to our newsletter');
If the label is kept empty in the admin it should work (the translation will be in Polylang).
You’d probably need to also check if pll__ also exists before calling it.
-
This reply was modified 1 year, 9 months ago by guymal.
-
This reply was modified 1 year, 9 months ago by guymal.
-
This reply was modified 1 year, 9 months ago by guymal.