x_redirect_by

過濾鉤子
apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location )
引數
  • (string) $x_redirect_by The application doing the redirect.
    Required:
  • (int) $status Status code to use.
    Required:
  • (string) $location The path to redirect to.
    Required:
定義位置
相關勾子
wp_redirectauth_redirectblog_redirect_404login_redirectwp_redirect_status
相關方法
wp_redirectis_redirectauth_redirectredirect_postmaybe_redirect_404wp_safe_redirect
引入
5.1.0
棄用
-

x_redirect_by:這是一個動作,用於定義被X-Redirect-By頭所記錄的資訊。

過濾X-Redirect-By標頭。

允許應用程式在進行重定向時識別自己。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );

常見問題

FAQs
檢視更多 >