Do you want to remove certain un-needed elements from the WordPress admin menu, to stop your client from becoming confused or overwhelmed? Here’s how.
WordPress has a neat little function built in to do just that, namely: remove_menu_page().
The great thing about this function is the pages are not removed, just the admin menu link!
Would remove the link to the media library, but the page its self would still exist and could be accessed by the admin via: http://your-domain.com/wp-admin/upload.php.
How to use this function?
We need to add this/theses function(s) to a hook and the best place to do this is functions.php. To remove Posts, Tools, Media, comments and a portfolio section (if your theme has one) add this to your functions.php:
//HIDE UNWANTED ITEMS FROM WP ADMIN MENU
That’s it! To find out more about the remove_menu_page function look here