WP HOOKS
filtrod 2.3.0

clean_url

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

Opis — z kodu źródłowego

Filters a string cleaned and escaped for output as a URL.

Parametry

ParametrTypOpis
$good_protocol_urlstringThe cleaned URL to be returned.
$original_urlstringThe URL prior to cleaning.
$_contextstringIf 'display', replace ampersands and single quotes only.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'clean_url', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii