Created
February 2, 2014 19:56
-
-
Save jbutko/8773845 to your computer and use it in GitHub Desktop.
WP, Qtranslate: How to Get Current Language Code by Using qTranslate Plugin of WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (qtrans_getLanguage()=='en') { | |
// put your code here if the current language code is 'en' (English) | |
} elseif (qtrans_getLanguage()=='id') { | |
// put your code here if the current language code is 'id' (Indonesian) | |
} | |
// From http://www.openscriptsolution.com/cms/wordpress/how-to-get-current-language-code-by-using-qtranslate-plugin-of-wordpress/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment