send_auth_cookies

過濾鉤子
apply_filters( 'send_auth_cookies', true )
引數
  • (bool) $send Whether to send auth cookies to the client.
    Required:
定義位置
相關勾子
set_auth_cookiesecure_auth_cookieauth_cookieclear_auth_cookieauth_cookie_bad_hash
相關方法
wp_set_auth_cookiewp_parse_auth_cookiewp_generate_auth_cookiewp_clear_auth_cookiewp_validate_auth_cookiewp_setcookie
引入
4.7.4
棄用
-

send_auth_cookies: 這是WordPress中的一個動作鉤子,當認證cookies被髮送到瀏覽器時被觸發。send_auth_cookies動作鉤子可以用來修改正在傳送的cookie,或者增加要傳送的額外cookie。這對於在cookie中新增自定義認證資料或修改認證過程是很有用的。

允許防止認證cookie實際被髮送到客戶端。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
if ( ! apply_filters( 'send_auth_cookies', true ) ) {
if ( ! apply_filters( 'send_auth_cookies', true ) ) {
if ( ! apply_filters( 'send_auth_cookies', true ) ) {

常見問題

FAQs
檢視更多 >