Select Page

Use this to hide menu items in the WordPress admin area that you do not use.

<?php 
function remove_menus_links(){
 remove_menu_page( 'edit.php?post_type=portfolio' );
 remove_menu_page( 'edit.php?post_type=team' );
 remove_menu_page( 'edit.php?post_type=clients' );
 remove_menu_page( 'edit.php?post_type=agni_slides' );
}
add_action( 'admin_menu', 'remove_menus_links' );
?>