Home › Forums › WordPress › Admin Customization › Remove Menus Items From Admin Area
- This topic has 0 replies, 1 voice, and was last updated 8 years, 2 months ago by Layer7web.
Viewing 0 reply threads
-
AuthorPosts
-
-
September 13, 2016 at 10:07 am #2482
Layer7webKeymasterPHP1234567891011121314151617181920add_action( 'admin_menu', 'l7w_remove_menus' );function l7w_remove_menus(){if( current_user_can( 'editor' ) ) {remove_menu_page( 'edit.php?post_type=mecrs-resources' );remove_menu_page( 'index.php' );remove_menu_page( 'edit-comments.php' );remove_menu_page( 'edit.php?post_type=page' );remove_menu_page( 'edit.php' );remove_menu_page( 'upload.php' ); // Mediaremove_menu_page( 'link-manager.php' ); // Linksremove_menu_page( 'edit-comments.php' ); // Commentsremove_menu_page( 'edit.php?post_type=page' ); // Pagesremove_menu_page( 'plugins.php' ); // Pluginsremove_menu_page( 'themes.php' ); // Appearanceremove_menu_page( 'tools.php' ); // Toolsremove_menu_page( 'options-general.php' ); // Settingsremove_menu_page( 'edit.php?post_type=project' );remove_menu_page( 'edit.php?post_type=portfolio' );}}
-
-
AuthorPosts
Viewing 0 reply threads
You must be logged in to reply to this topic.
Comments are closed.