How to apply a function to the value $email of get_user_by to override email_exists?
Based on your code, I think the problem may have been that you were checking a variable that was undefined. You were checking $db_email, which in your function was an undefined value, so you’d be looking for an empty result. You need to check the value passed to email_exists() (which would be the email being … Read more