filtrod 5.1.0
x_redirect_by
Opis — z kodu źródłowego
Filters the X-Redirect-By header.
Allows applications to identify themselves when they're doing a redirect.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$x_redirect_by | string | false | The application doing the redirect or false to omit the header. |
$status | int | Status code to use. |
$location | string | The path to redirect to. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'x_redirect_by', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'x_redirect_by', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii