redirect user login
-
I have been using this to redirect a user the their profile page, but now I want to redirect them to a specific page on their blog:
<?php
`//=Redirect to User’s Profile Page after Login
function rt_login_redirect($redirect_to, $set_for, $user){
$redirect_to = bp_loggedin_user_domain($user->id);
return $redirect_to;
}
add_filter(‘login_redirect’, ‘rt_login_redirect’, 20, 3);
?>`I added this ` bp_loggedin_user_domain` to replace this `bp_loggedin_user_domain` but it ends up redirecting me to the users-blog/wp-admin. Does anyone have any idea how to redirect the /wp-admin to another page?
Thanks
You must be logged in to reply to this topic.