This filter hook function will allow you to remove specific menu items and admin pages from the WordPress admin screen. Sometimes it is nice to remove unnecessary menu items and particular admin pages for a client website. If the client isn’t going to use it then in my option it would be a good idea to remove them. This helps declutter the admin interface for the client and keep things nice and clean for them.

[php]
/*——————————————————————————————-*/
/* Hide admin menus from all users except for login_id "jamie" */
/*——————————————————————————————-*/
add_action( ‘admin_menu’, ‘srh_remove_menu_pages’ );
/* admin_menu hook function/callback */
function srh_remove_menu_pages() {

/* admin_menu hook function/callback */
add_action(‘admin_init’, ‘srh_check_username’);

function srh_check_username() {

/* Retrieve the current user object (WP_User) */
$user = wp_get_current_user();

if( $user && isset( $user->user_login ) && ‘jamie’ !== $user->user_login ) {
/* Hide other users menus */
/* Top level core menu items */
remove_menu_page(‘link-manager.php’);
remove_menu_page(‘edit.php?post_type=slide’);
remove_menu_page(‘edit.php?post_type=portfolio’);
remove_menu_page(‘edit.php?post_type=feedback’);
remove_menu_page(‘tools.php’);
remove_menu_page(‘plugins.php’);
remove_menu_page(‘options-general.php’);
remove_menu_page(‘update-core.php’);
/* Top level plugin menu items */
remove_menu_page(‘easy-content-types’);
remove_menu_page(‘ot-settings’);
remove_menu_page(‘pb_backupbuddy_getting_started’);
remove_menu_page(‘wp_stream’);
/* Sub Menus */
remove_submenu_page( ‘themes.php’, ‘theme-editor.php’ );
remove_submenu_page( ‘themes.php’, ‘widgets.php’ );
remove_submenu_page( ‘themes.php’, ‘customize.php’ );
remove_submenu_page( ‘themes.php’, ‘themes.php’ );
remove_submenu_page( ‘themes.php’, ‘ot-theme-options’ );
remove_submenu_page( ‘index.php’, ‘update-core.php’ );
remove_submenu_page( ‘plugins.php’, ‘plugin-editor.php’ );
remove_submenu_page( ‘woothemes’, ‘woo-meta-manager’ );
remove_submenu_page( ‘woothemes’, ‘woo-hook-manager’ );
remove_submenu_page( ‘woothemes’, ‘woo-layout-manager’ );
remove_submenu_page( ‘edit.php’, ‘edit-tags.php?taxonomy=post_tag’ );
remove_submenu_page( ‘edit.php’, ‘ce-post-column-editor’ );
remove_submenu_page( ‘edit.php?post_type=page’, ‘ce-page-column-editor’ );
} else {
/* hide admin menus from user_login ‘jamie’ */
remove_menu_page(‘link-manager.php’);
remove_menu_page(‘edit.php?post_type=slide’);
remove_menu_page(‘edit.php?post_type=portfolio’);
remove_menu_page(‘edit.php?post_type=feedback’);
remove_menu_page(‘tools.php’);
/* Sub Menus */
remove_submenu_page( ‘plugins.php’, ‘plugin-editor.php’ );
remove_submenu_page( ‘edit.php’, ‘ce-post-column-editor’ );
remove_submenu_page( ‘woothemes’, ‘woo-meta-manager’ );
remove_submenu_page( ‘woothemes’, ‘woo-hook-manager’ );
remove_submenu_page( ‘woothemes’, ‘woo-layout-manager’ );
remove_submenu_page( ‘edit.php?post_type=page’, ‘easy-content-types’ );
remove_submenu_page( ‘edit.php?post_type=page’, ‘ce-page-column-editor’ );
}
}
}

[/php]