How can I programmatically switch language?
-
In WPML I used to be able to do something like this:
$sitepress->switch_lang('en');
but how do I do it in Polylang? I am baffled the documentation doesn’t contain anything about this, and that I couldn’t find anything on Google.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How can I programmatically switch language?’ is closed to new replies.