Created
July 19, 2015 08:53
-
-
Save goliver79/f88e373a2fb1bdc6c776 to your computer and use it in GitHub Desktop.
[WORDPRESS] Get wp-admin menus information.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_init', 'wpse_136058_debug_admin_menu' ); | |
function wpse_136058_debug_admin_menu() { | |
// position $value[ 2 ] is the menu slug | |
echo '<pre>' . print_r( $GLOBALS[ 'menu' ], TRUE) . '</pre>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment