Reply To: Display content in GP Hooks based on language

Home Forums Support Display content in GP Hooks based on language Reply To: Display content in GP Hooks based on language

Home Forums Support Display content in GP Hooks based on language Reply To: Display content in GP Hooks based on language

#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/