php - wordpress Polylang function pll_the_languages() return empty string and not the switcher?

one text

Solution:

I hope this is still relevant. For me the problem was that i didn't had any content for the languages, so I had to give an extra option to the pll_the_languages function for displaying the items even if they're empty -> array('hide_if_empty' => 0). It is set to 1 on default.

Source