Capture when language has been changed
-
I want to be able to set a variable every time a user clicks on the flag to change language. I need to do this because a plugin can only deal with 1 language and I want to put some php code in the page to detect the language last selected. I can not rely on the
$_SERVER[‘HTTP_ACCEPT_LANGUAGE’] or get_bloginfo ( ‘language’ )
because of the landing page in always in a single language e.g. en.If I could set a variable every time someone clicks on a flag then I could read that later on.
Any idea’s ? perf: without adding code to the plugin as that’s not good for updates etc….
Thanks in advance.
The topic ‘Capture when language has been changed’ is closed to new replies.