Created
June 20, 2017 11:32
-
-
Save IacopoC/efc36e9a612a39aa25202c64b3e4c594 to your computer and use it in GitHub Desktop.
Check which language are you visualizing in wpml and do some actions
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
<?php if(ICL_LANGUAGE_CODE=='en'): | |
// do something | |
elseif(ICL_LANGUAGE_CODE=='it'): | |
// do something else | |
endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment