Home / Tutorials / How to Remove Admin Menu Items According to User Role
menu by user role

How to Remove Admin Menu Items According to User Role

You will usually find one or more menu items that you don’t want to show to your guest posters. How do you hide them?

Turns out it’s quite simple, just take a look at the url of those menu items, and then use that to build up your function like so:

Here are some of menu page names for the most common menu items that come with WordPress:

bonus tip –  If you want to remove the ability of a role to see the list of posts by other users, use this code:

 

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

Manage Columns from Pages / Posts and Custom Post Types List

Available filter to manage columns in worpdress: manage_pages_columns manage_posts_columns manage_{$taxonomy_id}_columns manage_{$post_type}_posts_columns   Predefined Column Names …

wp-online-shop

7 Best Free WordPress Ecommerce Plug-ins

WordPress can be used as a robust solution for building eCommerce sites. The powerful plug-in …

Leave a Reply

Your email address will not be published. Required fields are marked *

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH