In a shortcode, pll_ is not available
-
Hello there !
I’m trying to use Polylang (v2.3.4) inside a shortcode on my theme, which is then used inside a post on my blog ; sadly, I get this error : PHP Fatal error: Uncaught Error: Call to undefined function pll_() in […]
The issue for me is that pll_e “work” (as in “is available”), while pll_ doesn’t work.
How can I access pll_ inside my shortcode ?
Thanks for your work !
EDIT : Oh, and __(‘MyString’, ‘pll_string’ ) works, so __(”, ‘pll_string’) and pll_e() both work, but not pll_()
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘In a shortcode, pll_ is not available’ is closed to new replies.