Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Sep 14, 2012

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

This comment has been minimized.

Copy link
Owner Author

commented Sep 14, 2012

@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
You can’t perform that action at this time.