Bluehost: Web hosting from $3.95/month. Sign Up

WordPress Tip: Remove Items from the Admin Menu

Posted on by Clive Walker in WordPress

Yesterday I was working on a WordPress site and a question came up about removing (or hiding) top level items from the Admin Menu (for all users). This is what I've used in other projects:

function edit_admin_menus() {
   remove_menu_page('page-you-want-to-remove.php');
}
add_action( 'admin_menu', 'edit_admin_menus' );

Change page-you-want-to-remove.php to the page you want to hide. Put the code in your functions.php file. That should be it.

WordPress Codex: remove_menu_page function

Comments

Leave a comment

A simple question that helps prevent automated form fillers.

© 2016 Clive Walker