Created
March 2, 2022 19:58
-
-
Save pedrorvidal/af1681653d3e4111dd1046e8c3b4f344 to your computer and use it in GitHub Desktop.
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
// wordpress function to debug menu (and use remove_menu_page) | |
add_action( 'admin_init', 'the_dramatist_debug_admin_menu' ); | |
function the_dramatist_debug_admin_menu() { | |
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