Polylang : force language before page load based
-
I need to force language before page loads, but I don’t see an option or a hook to do so.
I could just replace all my
pll__('string')withpll_translate_string('string','my-lang-code')but this would have to be done in many files.Is there an option to force the language somehow?
Explanation: a user created a post (non-translatable) in a certain language. The language he used when creating the post, should be used to display the page and not the browser’s language or default polylang language.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Polylang : force language before page load based’ is closed to new replies.