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



wp_redirect_status ›

Since2.3.0
已弃用n/a
apply_filters( 'wp_redirect_status', $status, $location )
参数: (2)
  • (int) $status The HTTP response status code to use.
    Required: Yes
  • (string) $location The path or URL to redirect to.
    Required: Yes
定义在:
文档:

Filters the redirect HTTP response status code to use.





源码

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