Penci Design replied
Hi,
I checked documention of Polylang plugin. I saw plugin have "pll_current_language" function http://prntscr.com/n28i5f
Please check http://prntscr.com/n28had to know how to get locale of your language
You can try use with custom code php below:
// slug_lang either ‘name’ or ‘locale’ or ‘slug’, defaults to ‘slug’
$value = 'en';
if( function_exists( 'pll_current_language' ) && pll_current_language($value) ) {
// Custom code
}
Best Regards,
PenciDesign