redirecting to user domain using $bp
I create a function in bp-custom.php that does redirection and hooks to the login process.
after the function i am adding the action
the function is declaring global $bp and it seem to work fine except for one thing.
I am trying to create a redirection as follows:
$url = $bp->loggedin_user->domain . ‘profile/edit';
for some reason when this redirection is called it is redirecting to the home page and appending the ‘profile/edit’ to it without starting with the user domain (which is working fine for me in other places).
I know for sure that $bp is declared and working since I am using $bp->loggedin_user->id to run some conditions within the function.
Any help on this would be appreciated.
- The topic ‘redirecting to user domain using $bp’ is closed to new replies.