I’m trying to redirect users to a custom page I made when they log in, but I’m not sure I have it right. I don’t know exactly which function or variables to use. I want to use the index.php as a way to redirect users. I’m working in wordpress latest, as well as buddypress latest.
So ok, this is what I have:
function my_redirect() {
global $bp;
if ( $bp->current_component == $bp->root_domain ) {
bp_core_redirect($bp->root_component == MY_CUSTOM_SLUG );
}
}
The slug I created is in the root, so it looks like this:
www.mysite.com/mypage
Any ideas?
This can be achieved using
redirect_toin your login links. This will require editing of your template.This will probably make you want to cut your face off at some point, since you will have to edit the template every time you want to change your redirect page.