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



wp_redirect ›

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

Filters the redirect location.





源码

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