Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m guessing, just from the example in your link, that the function code would be something like this:

    $user = get_user_by('email', $_POST['email']);
    $args['email'] = $_POST['email'];
    $args['user'] = $user->user_login;
    return $args;

    I’ve no idea what the actual email field name in $_POST would be, you would need to determine that. Some extra code if the field is blank is probably needed too.

    Julia_Bl

    (@julia_bl)

    To solve the problem with password reset, you can use a plugin that replaces username with email, like this:
    https://github.com/wp-plugins/email-as-username-for-wp-members

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-Members Email Only Password Reset Using wpmem_pwdreset_args’ is closed to new replies.