Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Collect & display data from current admin screens contextual hooks and from which hook on some globals are available.

This comment has been minimized.

Copy link

@chrisguitarguy chrisguitarguy 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.


This comment has been minimized.

Copy link
Owner Author

@franz-josef-kaiser franz-josef-kaiser 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