Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to make a private community?

@Travel-Junkie Thanks for the code. I know it will help me achieve what I want.

But my challenge is that I know nothing about coding. I have succeeded in locating the functions.php and have opened it in order to edit it. My question is where in the whole code will I place the code you wrote. Is it at the beginning or end of the code.

I am planning to use this code below

function sh_walled_garden()
{
global $bp;

if( bp_is_register_page() || bp_is_activation_page() )
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’ );

Please, I will appreciate you help. I am a complete WYSIWYG person but I can follow simple instructions as regards code.

Thank you in anticipation.

Gabu

Skip to toolbar