redirect to registration page how exclude some pages?
- 
		Hello 
 thats my code:
 `function restrict_access() {global $bp, $bp_unfiltered_uri; if (!is_user_logged_in() && (BP_REGISTER_SLUG != $bp->current_component )) { //bp_core_redirect( $bp->root_domain ); 
 bp_core_redirect( $bp->root_domain . ‘/’ . BP_REGISTER_SLUG );} 
 }add_action( ‘wp’, ‘restrict_access’, 3 ); 
 `how can I exclude some pages. My sitemap,my terms of use page and my home page are also redirected I want to exclude them. Can someone help me please 
Viewing 1 replies (of 1 total)
	
Viewing 1 replies (of 1 total)
	
- The topic ‘redirect to registration page how exclude some pages?’ is closed to new replies.