wp_set_password
Fires after the user password is set.
Использование
add_action( 'wp_set_password', 'wp_kama_set_password_action', 10, 2 ); /** * Function for `wp_set_password` action-hook. * * @param string $password The plaintext password just set. * @param int $user_id The ID of the user whose password was just set. * * @return void */ function wp_kama_set_password_action( $password, $user_id ){ // action... }
- $password(строка)
- The plaintext password just set.
- $user_id(int)
- The ID of the user whose password was just set.
Список изменений
С версии 6.2.0 | Введена. |
Где вызывается хук
wp_set_password
wp-includes/pluggable.php 2763
do_action( 'wp_set_password', $password, $user_id );