wpseek.com
WordPress开发者和主题制作者的搜索引擎



x_redirect_by › WordPress过滤钩子

Since5.1.0
已弃用n/a
apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location )
参数: (3)
  • (string|false) $x_redirect_by The application doing the redirect or false to omit the header.
    Required: Yes
  • (int) $status Status code to use.
    Required: Yes
  • (string) $location The path to redirect to.
    Required: Yes
定义在:
文档:

Filters the X-Redirect-By header.

Allows applications to identify themselves when they're doing a redirect.





源码

$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );