Skip to content

Instantly share code, notes, and snippets.

@steppohub
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steppohub/a1e460f09099720f4f74 to your computer and use it in GitHub Desktop.
Save steppohub/a1e460f09099720f4f74 to your computer and use it in GitHub Desktop.
Awesome snippet for debugging WP menu items (mainly to hide them etc)
add_action('admin_init', 'wpse_136058_debug_admin_menu');
function wpse_136058_debug_admin_menu() {
echo '<pre>'.print_r($GLOBALS['menu'], true).'</pre>';
} // function wpse_136058_debug_admin_menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment