I am running WordPress with "WPML Multilingual CMS", so that it has multiple language versions.
In a function used with add_action('template_redirect',<functionname>)
, I need to find out what the current language is.
What should I call?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI have no experience with the plugin whatsoever, but from a quick scout of their site, it looks like:
ICL_LANGUAGE_CODE
will give you the current language. Worth a try, anyway!
multi-language
because that's was already used and multilingual was not.<3.0>
seems a meaningless tag... Also, I guess our comments became noise, I suggest removing both ;)