wp_redirect_status WordPress Filter Hook
The wp_redirect_status hook allows for the modification of the HTTP status code returned when a redirect occurs. This can be useful for debugging purposes or for changing the behaviour of certain plugins or themes.
apply_filters( 'wp_redirect_status', int $status , string $location ) #
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
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |