Summery Summery
Handles resetting the user’s password.
Syntax Syntax
Parameters Parameters
- $user
-
(Required) The user
- $new_pass
-
(Required) New password for the user in plaintext
Source Source
File: wp-includes/user.php
* @param int $user_id The matched user ID. */ return apply_filters( 'password_reset_key_expired', $return, $user_id ); } return new WP_Error( 'invalid_key', __( 'Invalid key.' ) ); } /** * Handles resetting the user's password. * * @since 2.5.0 * * @param WP_User $user The user * @param string $new_pass New password for the user in plaintext */ function reset_password( $user, $new_pass ) { /** * Fires before the user's password is reset. * * @since 1.5.0 * * @param WP_User $user The user. * @param string $new_pass New user password.
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |