With bbPress the only way to do this is with “private” or “hidden” forums
• Public – Anyone can see these forums
• Private – Only logged in registered users can see these forums
• Hidden – Only Moderators/Admins can see these forums
Are you using private forums?
If not maybe your using a membership type plugin to prevent users who are not logged in from seeing the forums?
Follow This link. Just a simple snippet.
https://vvcares.com/w/wordpress-hide-pages-for-non-logged-in-users/
The snippet will do:
IF the user is not logged-in..
AND the page name is ‘members’ OR ‘activity’ OR bp-profile-page..
THEN it will redirect to REGISTER page.
HOW TO REDIRECT USERS, WORDPRESS BUDDYPRESS HIDE PAGE FROM NON-MEMBERS, NON-LOGGEDIN USERS..
How to hiding / redirect users page from non logged in users ?
Here the simple step to protect your WordPress BuddyPress member only pages. Add this simple snippet into your theme’s ‘functions.php’ file. That’s it..
The below snippet sample will redirect the visitor if the visitor is not logged in & trying to visit the sensitive BuddyPress pages.
Will redirect non-logged-in users trying to access private content to your front page or home page
Ref: https://vvcares.com/blog/post/wordpress-buddypress-hide-page-from-non-members