Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: put some conditions and redirection upon login


techguy
Participant

@crashutah

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;
die;

Run the script and this will display that variable and then stop anything else from running so you can see that variable.

Skip to toolbar