after_password_reset хук-событиеWP 4.4.0

Fires after the user's password is reset.

Использование

add_action( 'after_password_reset', 'wp_kama_after_password_reset_action', 10, 2 );

/**
 * Function for `after_password_reset` action-hook.
 * 
 * @param WP_User $user     The user.
 * @param string  $new_pass New user password.
 *
 * @return void
 */
function wp_kama_after_password_reset_action( $user, $new_pass ){

	// action...
}
$user(WP_User)
The user.
$new_pass(строка)
New user password.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

reset_password()
after_password_reset
wp-includes/user.php 3324
do_action( 'after_password_reset', $user, $new_pass );

Где используется хук в WordPress

wp-includes/default-filters.php 505
add_action( 'after_password_reset', 'wp_password_change_notification' );