password_reset
This is a WordPress - password_reset hook. The plugin just uses it.
Handles resetting the user's password.
Usage
add_action( 'password_reset', 'wp_kama_password_reset_action', 10, 2 ); /** * Function for `password_reset` action-hook. * * @param WP_User $user The user. * @param string $new_pass New user password. * * @return void */ function wp_kama_password_reset_action( $user, $new_pass ){ // action... }
- $user(WP_User)
- The user.
- $new_pass(string)
- New user password.
Changelog
Since 9.4.0 | Introduced. |
Since 9.4.0 | This will log the user in after resetting the password/session. |
Where the hook is called
password_reset
woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php 381
do_action( 'password_reset', $user, $new_pass );