Calling pll functions on custom settings page?
-
Nothing seems to render.
I can error_log the global $polylang var and get output but if I try:
<?php pll_the_languages( array( ‘dropdown’ => 1 ) ); ?>
I can’t get any output.
On Line 27 of api.php, I included an error log:
if ($polylang instanceof PLL_Frontend && !empty($polylang->links)) { $switcher = new PLL_Switcher; return $switcher->the_languages($polylang->links, $args); } else { error_log( 'something is wrong' ); }
Sure enough, I get the error in my error log.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Calling pll functions on custom settings page?’ is closed to new replies.