Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to make a private community?


Anonymous User 96400
Inactive

@anonymized-96400

Well, just add that page to the first if statement in the function. Something like this:

`function sh_walled_garden()
{
global $bp;

if( bp_is_register_page() || bp_is_activation_page() || $bp->is_directory && $bp->current_component == ‘your-links-directory-slug’ )
return;

if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .’/’. BP_REGISTER_SLUG );
}
add_action( ‘get_header’, ‘sh_walled_garden’ );`

Skip to toolbar