Hide setting menus
This commit is contained in:
parent
835f718500
commit
afdddc9503
1 changed files with 10 additions and 0 deletions
|
|
@ -782,3 +782,13 @@ function register_youtube_button($buttons)
|
|||
{
|
||||
return $buttons
|
||||
}*/
|
||||
|
||||
function remove_menus(){
|
||||
// remove_menu_page( 'edit-comments.php' ); //Comments
|
||||
// remove_menu_page( 'themes.php' ); //Appearance
|
||||
remove_menu_page( 'plugins.php' ); //Plugins
|
||||
remove_menu_page( 'users.php' ); //Users
|
||||
remove_menu_page( 'tools.php' ); //Tools
|
||||
remove_menu_page( 'options-general.php' ); //Settings
|
||||
}
|
||||
add_action( 'admin_menu', 'remove_menus' );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue