$GLOBALS[‘hook_suffix’] variable empty
I thing you are missing the context. $GLOBALS[‘hook_suffix’] is available on any action fired after admin_init. Now, if you tried something like add_action( ‘admin_footer-‘. $GLOBALS[‘hook_suffix’], ‘myfunction’ ) outside of any function, you are not going to get anything. But if you do it – add_action(‘admin_menu’, ‘do_hook_to_footer’) and put the earlier hook within the do_hook_to_footer function, … Read more