WP HOOKS
filtrod 5.1.0

x_redirect_by

Args 3Plik wp-includes/pluggable.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the X-Redirect-By header.

Allows applications to identify themselves when they're doing a redirect.

Parametry

ParametrTypOpis
$x_redirect_bystring | falseThe application doing the redirect or false to omit the header.
$statusintStatus code to use.
$locationstringThe 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
}

Popularne w tej kategorii