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
.
View all references
do_action( 'lostpassword_post', $errors, $user_data );
Changelog
Version | Description |
---|---|
5.4.0 | Added the $user_data parameter. |
4.4.0 | Added the $errors parameter. |
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example to use this function
One need to add one custom field in lostpassword form using lostpassword_form hook, And now want to validate this field and add a wp_error also. So see how this can be done.