get_current_lang() not working properly
-
Hi!
I’m using this to get the current language:
global $wpCeceppaML;
$wpCeceppaML->get_current_lang();but it always returns the same! I have two languages, “en” (english) and “es” (spanish), and this function is always returning “es”. I can change the language of the page, choosing it in the languages menu, or changing the url parameters (&lang=en), and the menu changes, and everything changes, but the function I am calling from a plugin php is always returning “es”, never “en”.
Do you know why is this happening, and how could I solve it?
Many thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘get_current_lang() not working properly’ is closed to new replies.