Does your site run on Perch CMS? Hire me to help. Perch CMS Development

WordPress Tip: Remove Items from the Admin Menu

Posted on by Clive Walker in WordPress

I wrote this post a while back. The content can still be relevant but the information I've linked to may not be available.

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

Does your site run on Perch CMS? Hire me to help. Perch CMS Development

Comments

Comments are OFF for this post.

© 2024 Clive Walker