Setting redirect page for non-logged in users
I’m new to BP and am trying to set up redirects for non-logged in users. I don’t want them to go to the Register page or the WP login page, as the community is private. I have asked on the plugin forum for Private Buddypress but no reply and I think there may be an easy way to do this but not sure exactly what to put in the PHP code. All I need to know is how to make the below point to a page in my theme folder rather than the WP login:
`wp_redirect(get_option(‘siteurl’) . ‘/wp-login.php?redirect_to=’ . $redirect_to);`
I am guessing I change siteurl to something else but what?
You must be logged in to reply to this topic.