Re: How to make a private community?
ah, it makes sense now. my code makes all blog pages public, which obviously includes the frontpage as well. so if you’re showing the activity stream there, it would be public. I guess you want to make your complete site private? then the code below should work for you:
if( bp_is_register_page() || bp_is_activation_page() )
if( ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .'/'. BP_REGISTER_SLUG );
add_action( 'get_header', 'sh_walled_garden' );