Closed blackerfin closed 6 years ago
Have you seen this issue? https://github.com/grappler/polylang-slug/issues/21
Yes, but dont work for me.
I have been trying and I can use the function in the front-end but not in the back-end.
I have a plugin development by me and I need know the idioma to charge an different .po file. I think that polylang plugin is charge after my plugin..
Seems this issue was for Polylang plugin itself than "Polylang Slug"
I'm trying to use the pll_current_language function but always return null and if I don't include the api.php file then break the page.
This is my code:
$result value is always false. I hava tryed to set $field to name, locale and slug with same result. I think that PLL is null and, when check isset(PLL()->curlang->$field) is not isset and then return false.
What can I do?
Thanks