wp_http_cookie_value

過濾鉤子
apply_filters( 'wp_http_cookie_value', $this->value, $this->name )
引數
  • (string) $value The cookie value.
    Required:
  • (string) $name The cookie name.
    Required:
定義位置
相關勾子
auth_cookie_validauth_cookie_malformedpre_http_requestauth_cookie_bad_usernamewp_set_comment_status
相關方法
wp_remote_retrieve_cookie_valuewp_get_cookie_loginwp_setcookiewp_set_auth_cookiewp_http_validate_urlwp_set_comment_cookies
引入
3.4.0
棄用
-

wp_http_cookie_value: 這是一個WordPress函式,用於獲取客戶端Cookie的值。它接受Cookie名稱作為引數,並返回該Cookie的值。

過濾標題編碼的 cookie 值。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this->name );
return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this->name );
return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this->name );

常見問題

FAQs
檢視更多 >