How do I detect that a user has gone through the ‘Forgot Password’ workflow in WordPress?

I’m currently using the action hook profile_update to execute some code whenever the user updates his/her profile, but this action is not called when the user goes through the ‘forgot password’ workflow (click forgot password -> send email -> click link in email -> change password) to change their password.

I’ve read through the list of available actions and nothing seems appropriate. Note, I need to execute code after they’ve changed their password.

Related posts

Leave a Reply

1 comment

  1. change the link of the “forget password” to a PHP that you’ll write and which will log all the details (user-id, time, etc), and then your PHP script can redirect the customer to the original URL using header() method.