Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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.