<?php
//get the active language
$getLang = pll_the_languages(array('raw'=>1));
$currLang = get_bloginfo('language');
?>
description:
get the active language selected by user or auto selected by browser language
usage:
<?php if($currLang == “id-ID”){ echo”content in bahasa”; }else{ echo”content in english”; } ?>