• Resolved medtr

    (@medtr)


    Hi,
    in class-leira-avatar-public.php line 264 get_user_by_email() is deprecated since 3.3.0, use get_user_by() instead.
    updated line 264:
    $user = get_user_by( 'user_email' ,$id_or_email);
    thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ariel

    (@arielhr1987)

    @medtr thanks for your tip. I will include it in the next plugin release.

    Thread Starter medtr

    (@medtr)

    oops i made a mistake, field should be ’email’ not ‘user_email’, sorry for that.
    updated answer:
    $user = get_user_by( ’email’ ,$id_or_email);

    • This reply was modified 4 years, 1 month ago by medtr.
    Plugin Author Ariel

    (@arielhr1987)

    Included since version 1.3.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_user_by_email is deprecated’ is closed to new replies.