Exclude Restricted Forums from bbPress Main Query

By default, when you restrict a bbPress forum with Paid Member Subscriptions, users will still see this forum on the `/forums` page but if they try to access it, they will be prompted with a message or redirected to another page indicating that they cannot access that content.
It is also possible to completely remove from view these forums.

If you add the custom code from below to your website, the `/forums` page will only display forums that the current user can access:Array

You can also download the code directly as an add-on from the following link:

Download Exclude Restricted Forums from bbPress Query

After downloading, you need to install this like you would install any other plugin.

If you don’t know how to use these code snippets, please read the instructions found at the top of this page.

Paid Member Subscriptions Pro

Accept (recurring) payments, create subscription plans and restrict content on your website. Easily setup a WordPress membership site using Paid Member Subscriptions.

Unlock PRO Features

Or download FREE version