send_headers

動作鉤子
do_action_ref_array( 'send_headers', array( &$this )
引數
  • (WP) $wp Current WordPress environment instance (passed by reference).
    Required:
定義位置
相關勾子
wp_headersrdf_headerget_headersignup_headerlogin_header
相關方法
send_origin_headersget_headersend_nosniff_headerrest_send_cors_headersnocache_headersget_column_headers
引入
2.1.0
棄用
-

send_headers 是一個WordPress的動作鉤子,在標頭檔案被髮送到瀏覽器之前被觸發。這個鉤子允許開發者在向瀏覽器傳送頭資訊之前新增或修改頭資訊。

傳送請求的快取、內容型別等HTTP標頭後觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action_ref_array( 'send_headers', array( &$this ) );
do_action_ref_array( 'send_headers', array( &$this ) );
do_action_ref_array( 'send_headers', array( &$this ) );

常見問題

FAQs
檢視更多 >