[Resolved] Code snippet: make site private – Parse error
-
Hello, Iam tring to make my bp site privet with the following code snippet:
`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( ‘walled_garden’, ‘sh_walled_garden’ );`I get the error:
Parse error: syntax error, unexpected ‘/’ in /hsphereXXX on line 245Any ideas on how to fix this
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.