Custom registration function not working as it should because is_mail and email_exist keep giving errors when it shouldn’t

Because there is context lacking I’m not able to fix all your problems. One of the mistakes I see is that in your code this line: if (email_exists($email) === false) { $errors[] = ‘E-mail address is already in use.’; } Must be: if(email_exists($email)){ etc. Because you check whether the email_exists function returns an ID when … Read more