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被驗證,就會觸發。

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

常見問題

FAQs
檢視更多 >