Filters the redirect HTTP response status code to use.
Parameters
$status
int- The HTTP response status code to use.
$location
string- The path or URL to redirect to.
Source
$status = apply_filters( 'wp_redirect_status', $status, $location );
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
Example Migrated from Codex:
Convert HTTP/1.1-only status codes to 1.0 equivalents when using HTTP/1.0