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過期就會觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'auth_cookie_expired', $cookie_elements );
do_action( 'auth_cookie_expired', $cookie_elements );
do_action( 'auth_cookie_expired', $cookie_elements );

常見問題

FAQs
檢視更多 >