We needed to output the language code for a form and needed to use a shortcode. We are using WPML (WordPress Multi Language) plugin and thus have access to Language constants, ie ICL_LANGUAGE_CODE We needed to not only get the current language of the user, which was easy enough using a template tag, but needed it […]