Re: redirect to activity after login?
Oops – thanks r-a-y.
I chopped down too much the function that I use.
Perhaps this better explains my approach:
`
function login_intercepts(){
global $bp_unfiltered_uri;
if ( is_user_logged_in() ) {
/* if user logs in at domain name url or logged-out, they are sent to /activity */
if ( ($bp_unfiltered_uri[0] == “”) || ($bp_unfiltered_uri[0] == “logged-out”) ) {
bp_core_redirect( get_option(‘siteurl’).”/activity” );
}
/* if user logs in on activate page, they are sent to /welcome */
if ( $bp_unfiltered_uri[0] == “activate” ) {
bp_core_redirect( get_option(‘siteurl’).”/welcome” );
}
//etc
}
}
add_action( ‘wp’, ‘login_intercepts’, 3 );
`