Re: put some conditions and redirection upon login
I forgot, you could just change the filter login_redirect(). Although, you can’t do the same processing with that one as you can with the one I show above.
Have you tried dumping the $bp variable to see that $bp->loggedin_user->domain is available at that point in time?
You can also do the following to see if the URL that you’re storing in $user_domain is being created correctly:
echo ‘URL for Redirect: ‘ . $user_domain;
Run the script and this will display that variable and then stop anything else from running so you can see that variable.