[Plugin: Polylang] Get locale rather than full language name
-
Hi to all,
I wonder whether it is possible to get 2 letters locale rather than the full name of the language in the switch function.
For example:
<?php echo pll_the_languages(array('display_name_as' => 'locale','show_flags'=>'0')); ?>
The result would be; en, fr, hr …etc
tnx
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Polylang] Get locale rather than full language name’ is closed to new replies.