Re: Restricting a group to members
hi Kunal,
Try this one.
Put it inside a file in the mu-plugins folder
<?
function js_restrict_access(){
global $bp, $bp_unfiltered_uri;
if (!is_user_logged_in() &&(BP_GROUPS_SLUG == $bp->current_component )){
bp_core_redirect( get_option('home') . "/register" );
}
}
add_action( 'wp', 'js_restrict_access', 3 );
?>
And It will work.Let me know if it works or not.