Make WordPress Core

Opened 6 years ago

Last modified 5 months ago

#25269 new enhancement

Action hook for when a user updates their password

Reported by: desrosj Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords: needs-patch
Focuses: Cc:
PR Number:


When a user changes their password, there should be an action hook.

A use case that came up for me was sending out an email to the user when their password is updated to alert them of the change.

Another one that I can think of is setting an expiration time frame to force the user to change their password after X amount of days.

Attachments (1)

25269.patch (546 bytes) - added by desrosj 6 years ago.
Adding password_updated action hook.

Download all attachments as: .zip

Change History (3)

6 years ago

Adding password_updated action hook.

#1 @nacin
6 years ago

That code block only occurs when the current user changes his own password, not when someone else is changing their password for them.

#2 @chriscct7
4 years ago

  • Keywords needs-patch added; has-patch removed
Note: See TracTickets for help on using tickets.