auth_cookie_expired

动作钩子
do_action( 'auth_cookie_expired', $cookie_elements )
参数
  • (string[]) $cookie_elements { Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value. @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:
定义位置
相关勾子
auth_cookie_expirationauth_cookie_validauth_cookie_malformedauth_cookieauth_cookie_bad_hash
相关方法
wp_set_auth_cookiethe_content_feedwp_clear_auth_cookiewp_parse_auth_cookiewp_authenticate_cookiewp_get_cookie_login
引入
2.7.0
弃用
-

auth_cookie_expired是WordPress中的一个函数,用于检查认证cookie是否已经过期。如果认证cookie已经过期,该函数返回true,否则返回false。

一旦认证cookie过期就会触发。

do_action( 'auth_cookie_expired', $cookie_elements );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 19:32:59

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

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

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