Home › Forums › Support › Display content in GP Hooks based on language › Reply To: Display content in GP Hooks based on language
May 12, 2016 at 9:27 am
#193804
Tom
Lead Developer
Lead Developer
I think you can do something like this for example:
<?php if ( is_single() && 'Russian' == pll_current_language('name') ) : ?>
We're on a single post and Russian is the language
<?php endif; ?>
More info on their functions: https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/