filtrod 2.3.0
wp_redirect_status
Opis — z kodu źródłowego
Filters the redirect HTTP response status code to use.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$status | int | The HTTP response status code to use. |
$location | string | The path or URL to redirect to. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_redirect_status', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_redirect_status', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii