Re: put some conditions and redirection upon login
There’s a few plugins that do this if you search for redirect login (or something like that).
Otherwise, you could do your own with some code like this:
function bp_redirect_to_page()
{
$redirect_url_cc = ‘URL to redirect to’;
bp_core_redirect($redirect_url_cc);
}
/*Add an action to redirect user after login*/
add_action(“wp_login”,”bp_redirect_to_page”,100,0);
You can add a lot more functionality to that too. I’m also playing with this redirect at registration. Very nice little function.