WordPress.org

Ready to get started?Download WordPress

Forums

WP Email Login
[resolved] get_user_by_email is deprecated (3 posts)

  1. benjaminniess
    Member
    Posted 2 years ago #

    Hello,

    the function get_user_by_email is deprecated and generate a notice

    You should use :

    $user = get_user_by( 'email', $username );

    Instead of

    $user = get_user_by_email( $username );

    http://wordpress.org/extend/plugins/wp-email-login/

  2. Stergos
    Member
    Posted 2 years ago #

    I did that but I have the same results, users can login with both, username and email...

  3. Beau Lebens
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks benjaminniess, that change will go out in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic