wp_redirect_status

过滤钩子


apply_filters( 'wp_redirect_status', $status, $location )
参数
  • (int)
    $status
    The HTTP response status code to use.
    Required:
  • (string)
    $location
    The path or URL to redirect to.
    Required:
定义位置
  • wp-includes/pluggable.php
    , line 1387
引入
2.3.0
弃用

Filters the redirect HTTP response status code to use.

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