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



wp_redirect › WordPress过滤钩子

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

Filters the redirect location.





源码

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