WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

I've been looking at some options and I haven't seen a full solution to what I need. I need to block certain user_roles from accessing bbPress all together and from seeing the link to the page.

Any pointers?

share|improve this question
up vote 1 down vote accepted

Check this plugin. I've used it and it's quite versatile regarding user roles and user capabilities.

You can also add conditional statements in your php files, like this:

if (!current_user_can('some_capability_you_added')) {
   echo "You don't have permission for it!";
   return;
}

You can output that sentence or nothing at all.

share|improve this answer

Your Answer

 
discard

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.