Re: Users abandon the site after they login, seeing WordPress backend
hi Burt i’m testing your code locally and i’ve some problems:
i’ve created a redirect.php page in mu-plugins folder.
the page contains the following code (i’ve changed here php opening and closing).
php open
function oci_login_redirect($redirect_to, $set_for, $user){
$redirect_to = bp_core_get_userurl($user->ID);
return $redirect_to;
}
add_filter(‘login_redirect’, ‘oci_login_redirect’, 10, 3);
php close
when i login, i am leaded to a 404 error page. Then, if i go “back” with the browser, i am logged.