API problem on admin page (profile, dashboard)
-
I am not getting a correct translation when I call
pll_home_url()
when building the toolbar (specifically within an action hooked to “wp_before_admin_bar_render”) when viewing the dashboard or profile (any is_admin page). Investigating the problem and the source code of pll_home_url(), the issue seems to be that
class_exists(‘Polylang_Core’)
returns false. Is this the expected behaviour or not? Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘API problem on admin page (profile, dashboard)’ is closed to new replies.