Answer the question
In order to leave comments, you need to log in
Where is the language detection logic hidden in Polylang (WordPress) when you first enter the site?
Colleagues, welcome.
Who knows where the language detection logic in Polylang (WordPress) is hidden when you first enter the site? I didn't find it in the documentation.
I have a site example.com in two languages - English and Russian.
The default language is English. example.com - in English.
But for some reason, when you first enter the site, it automatically redirects to example.com/ru - which is in Russian! And I don't need it.
Where can it be changed?
I suspect the plugin is catching the locale in the browser. But where it can be rewritten by handles in PHP? I also want to add my own logic depending on the user's IP.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question