auth_cookie_valid

动作钩子
do_action( 'auth_cookie_valid', $cookie_elements, $user )
参数
  • (string[]) $cookie_elements { Authentication cookie components. @type string $username User's username. @type string $expiration The time the cookie expires as a UNIX timestamp. @type string $token User's session token used. @type string $hmac The security hash for the cookie. @type string $scheme The cookie scheme to use. }
    Required:
  • (WP_User) $user User object.
    Required:
定义位置
相关勾子
auth_cookieauth_cookie_malformedauth_cookie_expiredauth_cookie_bad_hashset_auth_cookie
相关方法
wp_set_auth_cookiewp_get_cookie_loginwp_parse_auth_cookiewp_clear_auth_cookiewp_auth_check_loadwp_authenticate_cookie
引入
2.7.0
弃用
-

auth_cookie_valid是WordPress中的一个函数,它检查认证cookie是否有效: 这个函数用于检查认证cookie是否有效,可以用来登录用户的网站。

一旦验证cookie被验证,就会触发。

do_action( 'auth_cookie_valid', $cookie_elements, $user );

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-18 00:27:15

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: