resetpass_form
Fires following the 'Strength indicator' meter in the user password reset form.
Использование
add_action( 'resetpass_form', 'wp_kama_resetpass_form_action' );
/**
* Function for `resetpass_form` action-hook.
*
* @param WP_User $user User object of the user whose password is being reset.
*
* @return void
*/
function wp_kama_resetpass_form_action( $user ){
// action...
}
- $user(WP_User)
- User object of the user whose password is being reset.
Список изменений
| С версии 3.9.0 | Введена. |
Где вызывается хук
В файле: /wp-login.php
resetpass_form
wp-login.php 1071
do_action( 'resetpass_form', $user );