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

Fires after the user password is set.


Parameters

$password

The plaintext password just set.

$user_id

The ID of the user whose password was just set.

$old_user_data

Object containing user's data prior to update.


Source

File: wp-includes/pluggable.php

View on GitHub


Changelog

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