after_password_reset
do_action( ‘after_password_reset’, WP_User $user , string $new_pass )
动作钩子::重置用户密码后激发。
Action Hook: Fires after the user’s password is reset.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$user | (WP_User) | 用户。 |
$new_pass | (string) | 新用户密码。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/user.php:2474 | 1 | 0 |
笔记(Notes)
备注:$new_pass参数是最初用来重置密码($user,$new_pass)的“明文用户新密码”。
after_password_reset 为WP2原创文章,链接:https://www.wp2.cn/hook/after_password_reset/