WP Multilang If Statement

Similar to WPML, you can create if statements using WP Multilang as follows:

if ( wpm_get_language() == 'pl' ) {
echo 'PL';
}

if ( wpm_get_language() == 'en' ) {
echo 'EN';
}

if ( wpm_get_language() == 'de' ) {
echo 'DE';
}

Source.

1 thought on “WP Multilang If Statement

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.