get_password_reset_key()
get_password_reset_key( WP_User $user )
创建、存储,然后返回用户的密码重置密钥。
Creates, stores, then returns a password reset key for user.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$user | (WP_User) | 必需 | 要检索的密码重置密钥的用户。 |
返回(Return)
(string|WP_错误)成功时的密码重置键。出错时出现WP_错误。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/user.php:2268 | 2 | 14 |
get_password_reset_key() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_password_reset_key/