Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    There is a filter hook in email process that would indicate that the user has successfully reset their password, since if the process reaches the point of that filter, the user’s password has been reset and they are being sent an email with the new password.

    The filter hook wpmem_email_repass is really for filtering the email message, but you could at that point set some kind of a flag for the user. But that is the tricky part – unlike the other example, you don’t readily have the user data available to set some kind of flag tied out to the user. And all you have passed to the filter is the email content. You might be able to grab the user’s email address at that point from the form submission ( $_POST[‘user_email’] ? ) and then use that to get_user_by(’email’) to get the user’s ID.

    I’m also trying to redirect after password reset; Chad, could you write up a snippet of how the email filter can be used in the redirect like you did in the ‘Password Change After First Login’ post? I’ve had no luck so far. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Password Change After Password RESET’ is closed to new replies.