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

In this article

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

VersionDescription
6.7.0The $old_user_data parameter was added.
6.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.