WordPress pages unblocked, BP & bbPress blocked
-
Here’s the behavior I need:
1. Block access to all BuddyPress and bbPress pages for users who aren’t logged in and redirect to wp-login.php page.–This plugin accomplishes this where most others I’ve tried have failed. Thanks!
2. Display pages specified as static Front page and Posts page under WordPress Dashboard/Settings/Reading to users who aren’t logged in
— I accomplished this by modifying line 27 in private-community-for-bp.php to add !is_front_page() && !is_home()
3. Display all individual blog posts with visibility = Public to users who aren’t logged in.
–I accomplished this by removing the array from the !is_single() parameter on line 27
4. Display all blog archive pages (author, date, tag, category) to users who aren’t logged in
— I accomplished this by adding !is_archive() to line 27
Thus, my line 27 now reads:
if ( !is_user_logged_in() && !is_front_page() && !is_home() && !bp_is_register_page() && !bp_is_activation_page() && !is_single() && !is_archive() && !is_page ( array ( ...
I need to do a bit more testing, but it looks like this plugin with my minor modifications will meet my needs. So, thank you so much for creating this plugin. I hope that you and others find this feedback helpful in future development and use.
Shirley
https://www.ads-software.com/plugins/private-community-for-bp-lite/
- The topic ‘WordPress pages unblocked, BP & bbPress blocked’ is closed to new replies.