One thought on “Allow Users to Log In with Registered Email Address”

  1. Carlos E. G. Barbosa

    Still valid @2015, but you should update the call to ‘get_user_by_email()’ as this function has been deprecated. Use get_user_by(’email’, $username ) instead.
    The whole line should read:
    $user_obj = get_user_by( 'email', $username );
    Nice piece of code.
    Thank you for publishing it.

Leave a Reply

Your email address will not be published. Required fields are marked *