Last active
February 2, 2017 17:26
-
-
Save oalansari82/58e550f40aae1dae3708394756c23041 to your computer and use it in GitHub Desktop.
WPML Language Selector Function
This file contains 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 | |
// WPML Language Selector | |
function io_language_selector( $english, $arabic ) { | |
if ( 'en' == ICL_LANGUAGE_CODE ) { | |
return $english; | |
} | |
elseif ( 'ar' == ICL_LANGUAGE_CODE ) { | |
return $arabic; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment