x_redirect_by WordPress Filter Hook
The x_redirect_by hook is a powerful tool for customizing the behavior of your WordPress site. This hook allows you to specify a custom URL to redirect users to, based on certain conditions. For example, you could use this hook to redirect users to a custom page if they are trying to access a page that does not exist.
apply_filters( 'x_redirect_by', string $x_redirect_by , int $status , string $location ) #
Filters the X-Redirect-By header.
Description
Allows applications to identify themselves when they’re doing a redirect.
Parameters
- $x_redirect_by
(string)The application doing the redirect.
- $status
(int)Status code to use.
- $location
(string)The path to redirect to.
Source
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |