Answer the question
In order to leave comments, you need to log in
How to get page titles depending on language?
Hello everyone, using the polylang plugin, how can I get different page links in header.php depending on the language?
Answer the question
In order to leave comments, you need to log in
$locale = get_locale();
if ( $locale == 'ru_RU' ) {
# ru code...
} else {
# other code...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question