Skip to content
Advertisement

WordPress: Get pll_the_languages inside my plugin

How can i get languages into my custom plugin of wordpress? When i call pll_the_languages() it’s output me error. Maybe i should call some global method?

enter image description here

My plugin code:

JavaScript

Advertisement

Answer

My issue is solved. You should use admin_init action:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement