if ($user_data !== false)If the $user_id from the first call is empty, then there is no such user yet.
{
wp_clear_auth_cookie ();
wp_set_auth_cookie ($user_data->ID, true);
do_action ('wp_login', $user_data->user_login, $user_data);
}
Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.
Answers