首页 WordPress函数大全 check_password_reset_key()

check_password_reset_key()

2020-05-01 / 2762阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

check_password_reset_key( string $key, string $login )

Retrieves a user row based>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
  • User Contributed Notes

描述

A key is considered ‘expired’ if it exactly matches the value of the user_activation_key field, rather than being matched after going through the hashing process. This field is now hashed; old values are no longer accepted but have a different WP_Error code so good user feedback can be provided.

参数

$key

(string)
(Required)
Hash to validate sending user's password.

$login

(string)
(Required)
The user login.

返回

(WP_User|WP_Error) WP_User object>WP_Error object for invalid or expired keys.

大家谈论
    我的见解