WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is it possible to sign in with user_email instead of user_login, please ?


share|improve this question
You could build a plugin that replaces the username with the user email when they register. – Alex Older Aug 4 '11 at 9:54
up vote 5 down vote accepted

Here's how we do it:

$user = get_user_by('email', $email);
if (wp_check_password($password, $user->user_pass, $user->ID)) {
    // Login successfull, redirect if needed

Assuming of course that you got the $email and the $password variables from a POST request or something :)

share|improve this answer

Search and you will find... WP Email Login

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.