lostpassword_post WordPress Action Hook
The lostpassword_post hook is triggered when a user has successfully requested a password reset. This hook gives developers the ability to perform custom actions after the password reset has been requested. For example, a developer could send a notification email to the site administrator or log the password reset request in a custom database table.
do_action( 'lostpassword_post', WP_Error $errors , WP_User|false $user_data ) #
Fires before errors are returned from a password reset request.
Parameters
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
5.4.0 | Added the $user_data parameter. |
4.4.0 | Added the $errors parameter. |
2.1.0 | Introduced. |