When and how is language changed/set
-
I have tried to get the current language from a hook in the plugin SearchWP Live Ajax Search, the hook is relevanssi_hits_filter. The problem is that the methods, both Polylang API methods as well as WordPress standard methods both return the default language and not the current language.
Al pages is displayed in the correct language but still the methods returns the default language.
Why?
/Erik
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘When and how is language changed/set’ is closed to new replies.