WP HOOKS
filtrod 2.2.0

status_header

Args 4Plik wp-includes/functions.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters an HTTP status header.

Parametry

ParametrTypOpis
$status_headerstringHTTP status header.
$codeintHTTP status code.
$descriptionstringDescription for the status code.
$protocolstringServer 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
}

Popularne w tej kategorii