Created
June 7, 2019 10:26
-
-
Save nfsarmento/6ac5abfe832928e9d3066207030b3eb7 to your computer and use it in GitHub Desktop.
Debug WordPress menu
This file contains 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
/** | |
* Debug WordPress menu | |
*/ | |
add_action( 'admin_init', 'ns_debug_admin_menu' ); | |
function ns_debug_admin_menu() { | |
echo '<pre>' . print_r( $GLOBALS[ 'menu' ], TRUE) . '</pre>'; | |
echo '<style> pre{margin-left: 240px;}</style>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment