简体   繁体   中英

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.

将“忘记密码”的链接更改为将要编写的PHP,它将记录所有详细信息(用户ID,时间等),然后您的PHP脚本可以使用header()将客户重定向到原始URL( ) 方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM