How to Rearrange and Show/Hide WordPress Admin Sidebar Menu Links Using functions.php

Managing the WordPress backend sidebar can greatly improve the admin experience — especially when working with clients or teams who only need access to specific areas. Instead of relying on plugins, you can take full control of the admin menu directly through your theme’s functions.php file.

In this post, we’ll walk through ready-to-use code snippets that let you hide unwanted menu items, reorder links to match your workflow, and rename labels to suit your project. Whether you’re building a client site or just cleaning up your own dashboard, these snippets are lightweight, plugin-free, and easy to customize.

Rearranging & Show/Hide WordPress Admin Sidebar Nav Links

You can customize the WordPress admin sidebar using hooks in your theme’s functions.php file (or a custom plugin).

Remove / Hide Admin Sidebar Links

Use the admin_menu hook with remove_menu_page() and remove_submenu_page():

Reorder / Rearrange Admin Sidebar Links

Use the menu_order filter along with custom_menu_order:

Rename Admin Sidebar Links

Common Menu Slugs & Their Default Positions

PositionMenu ItemSlug
2Dashboardindex.php
5Postsedit.php
10Mediaupload.php
15Linkslink-manager.php
20Pagesedit.php?post_type=page
25Commentsedit-comments.php
60Appearancethemes.php
65Pluginsplugins.php
70Usersusers.php
75Toolstools.php
80Settingsoptions-general.php
Share

Disclaimer: *This post may contain affiliate links. I may earn a small commission when you click on the links and buy the products with no additional cost to you. Thank you.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest
Inline Feedbacks
View all comments