W3cubDocs

/WordPress

do_action( ‘wp_set_password’, string $password, int $user_id, WP_User $old_user_data )

Fires after the user password is set.

Parameters

$passwordstring
The plaintext password just set.
$user_idint
The ID of the user whose password was just set.
$old_user_dataWP_User
Object containing user’s data prior to update.

Source

do_action( 'wp_set_password', $password, $user_id, $old_user_data );

Changelog

Version Description
6.7.0 The $old_user_data parameter was added.
6.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_set_password