0

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?

1 Answer 1

1

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.

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.