Redirect to custom user dashboard after logging in with OneAll WordPress plugin


/* Change redirect URL for OnaAll Social Login */
function if_login_registration_redirect_filter ($url, $user_data){
$student_name = get_the_author_meta( 'user_nicename', $user_data->id );
$redirection_url = get_site_url() . '/author/' . $student_name;
return $redirection_url;
}
add_filter('oa_social_login_filter_registration_redirect_url', 'if_login_registration_redirect_filter', 10, 2);
add_filter('oa_social_login_filter_login_redirect_url', 'if_login_registration_redirect_filter', 10, 2);