Does PolyLang have a built-in function that checks if PolyLang is active?
-
Hi
I went through the Functions Reference document on your website and couldn’t find if there is any function that checks if Polylang is active before using the functions so I made this function myself:
function is_polylang_active() { return function_exists('pll_the_languages'); }
I’m then using it like
if (is_polylang_active()) { .... }
Is that ok?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Does PolyLang have a built-in function that checks if PolyLang is active?’ is closed to new replies.