filtrod 2.2.0
status_header
Opis — z kodu źródłowego
Filters an HTTP status header.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$status_header | string | HTTP status header. |
$code | int | HTTP status code. |
$description | string | Description for the status code. |
$protocol | string | Server protocol. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'status_header', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'status_header', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii