Skip to content

Instantly share code, notes, and snippets.

@franz-josef-kaiser
Created September 13, 2012 01:25
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save franz-josef-kaiser/3711215 to your computer and use it in GitHub Desktop.
Save franz-josef-kaiser/3711215 to your computer and use it in GitHub Desktop.
Collect & display data from current admin screens contextual hooks and from which hook on some globals are available.
MOVED TO A REPO NOW: https://github.com/franz-josef-kaiser/current-admin-info
@chrisguitarguy
Copy link

This is really freakin' cool.

One issue: I get a lot of array to string conversion warnings on the globals class due to some global variables being an array. I changed it a bit to use var_export. Prettier printing, but it can make the help area really (REALLY) long.

https://gist.github.com/3719649#L148

@franz-josef-kaiser
Copy link
Author

@chrisguitarguy Somewhere on WPSE I already pointed that out. While reading your comment, I thought about two possibilites: Shortening the output of var_export() and cutting it off at, let's say 50 characters. Another way would be to invoke js and simply toggle the visibility on click.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment