‘get_current_screen’ called before admin_init hook
-
For time to time, after the plugin gets updated, we need to manually “patch” the plugin cause it keeps breaking due function “get_current_screen” getting called in “admin_menu” hook which trigger before “admin_init“.
“get_current_screen” only gets available after “admin_init” has fired. ref
“admin_menu” fires before “admin_init“. ref
“get_current_screen” is called inside TO_Terms_Walker class, start_el method.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.