0

I would like to remove the capability to interact with a certain page in the admin dashboard from certain users. I mean read, edit, and whatever else. In other words, when a user visit a page (for example plugins page), it should say "you are not allowed to visit this page. Also, I would like to remove it from the menu.

Is it possible? If yes how?

1 Answer 1

0

capability

Each page, there have an item in the Menu of the Back end, have a capability to see the menu item and access this page. If you remove this capability from the role of the user's, she can't see and access this page.

You can do this via plugin, like 'Members' or via custom code with the help of remove cap. A overview about all capabilities and roles find you in the codex.

menu item

If you need the access and only hide the item in the menu of the back end, you should change the menu array. This is possible via plugin, like 'Adminimize', or custom source with the help of remove_menu_page and remove_submenu_page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.