Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Force users to sign up before being able to see content/members


peterverkooijen
Participant

@peterverkooijen

I use this as temporary solution:

function js_restrict_access(){
global $bp, $bp_unfiltered_uri;

if (!is_user_logged_in() &&
(BP_MEMBERS_SLUG == $bp_unfiltered_uri[0] ||
BP_GROUPS_SLUG == $bp->current_component ||
BP_BLOGS_SLUG == $bp->current_component)){

bp_core_redirect( get_option('home') . "/register" );

}
}
add_action( 'wp', 'js_restrict_access', 3 );

It closes the members, groups and blogs sections for non-registered users. You have to put it in bp-custom.php.

Privacy is planned for a later version, maybe, or maybe not.

Skip to toolbar