Check to see if there a wordpress user account and create one if not outside of wordpress
How are you searching for this user? Either way, this it the function you want to use, as it can look via ID, user_nicename, email and login. e.g.: $userEmail = $_GET[‘useremail’]; $field = ’email’; $user = get_user_by( $field, $userEmail ); if(!$user) { $newUserArgs = array( ‘user_login’ => $_GET[‘userlogin’], ‘user_pass’ => $_GET[‘hashedpass’], ‘user_email’ => $_GET[‘useremail’] ); … Read more