Web Hosting from Bluehost. Sign-up here

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() {
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


Leave a comment

A simple question that helps prevent automated form fillers.

© 2017 Clive Walker