WP HOOKS
filtrod 2.3.0

wp_redirect_status

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

Opis — z kodu źródłowego

Filters the redirect HTTP response status code to use.

Parametry

ParametrTypOpis
$statusintThe HTTP response status code to use.
$locationstringThe 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
}

Popularne w tej kategorii