wp_set_password action-hookWP 6.2.0

Fires after the user password is set.

Usage

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(string)
The plaintext password just set.
$user_id(int)
The ID of the user whose password was just set.

Changelog

Since 6.2.0 Introduced.

Where the hook is called

wp_set_password()
wp_set_password
wp-includes/pluggable.php 2791
do_action( 'wp_set_password', $password, $user_id );

Where the hook is used in WordPress

Usage not found.