filtrod 2.3.0
clean_url
Opis — z kodu źródłowego
Filters a string cleaned and escaped for output as a URL.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$good_protocol_url | string | The cleaned URL to be returned. |
$original_url | string | The URL prior to cleaning. |
$_context | string | If '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
}
// 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