WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My friend mentioned that there is a simple way to modify what users see in the admin sidebar based on their user role. I have a large number of custom post types, one for each user, and I need to limit these users (currently given the role 'author') access to only their own post type and the Posts (not even Pages). I also want to hide Widgets from them. Is there a bit of PHP I can stick in my functions.php file to accomplish this easily?

share|improve this question

This might help you for what you are looking for.


share|improve this answer
Thanks Jeremy, this is close but doesn't quite do what I wanted it to do. – daysrunaway Aug 25 '11 at 17:14
up vote 1 down vote accepted

To anyone else having the same problem as me, I used the Role Scoper plugin, which is recommended by WordPress on their page that describes user roles. It has a very simple UI, and is easy to install and use.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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