Created
January 14, 2014 04:10
-
-
Save regepan/8412910 to your computer and use it in GitHub Desktop.
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 | |
function remove_menu() { | |
global $menu; | |
var_dump($menu);// この中にremove_menu_page()に何を渡せばいいのかがわかる文字列が入っている。 | |
remove_menu_page('index.php'); // ダッシュボードが消える。 | |
} | |
add_action('admin_menu', 'remove_menu'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment