I'm trying to implement the code to add a custom post status from my plugin, exactly as given in this tutorial: http://jamescollings.co.uk/blog/wordpress-create-custom-post-status/
Now, it isn't working and after some investigation it seems the admin_footer-post.php action isn't firing. The codex page for this action hook states . . .
admin_footer-(hookname) is triggered at the end of the section of a specific admin page, after
The hookname part you can get using the variable $GLOBALS['hook_suffix']
. . . but that variable is empty. I've tried directly accessing $hook_suffix with no luck, and printing out the entire $GLOBALS array shows no hook_suffix anywhere.
I am very confused.
At first I thought maybe it was written for an older version of WP but there's a comment on the blog post from just 3 days ago from someone who seems to have achieved success. I've tried turning off themes and all other plugins, and just have absolutely no idea where to go from here.
What could make the $GLOBALS['hook_suffix'] variable, apparently a common enough thing in WP development, simply cease to exist on my site?