Filters the X-Redirect-By header.
Description
Allows applications to identify themselves when they’re doing a redirect.
Parameters
$x_redirect_bystring|false- The application doing the redirect or false to omit the header.
$statusint- Status code to use.
$locationstring- The path to redirect to.
Source
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
a word of caution: it SHOULD return a string.
If you don’t return a string .. the header will not be shown
This can be seen in the pluggable.php wp_redirect function