Polylang: pll_e() & pll__() on functions.php, doesn’t work
I have no experience with the Polylang plugin, but I think it’s safe to assume that this is has to do with load order of the Polylang plugin and your theme’s functions.php. When you call a function in the global scope (i.e. not from within another function) of index.php or any other template file, it … Read more