filtrod 5.0.1
wp_kses_uri_attributes
Opis — z kodu źródłowego
Filters the list of attributes that are required to contain a URL.
Use this filter to add any data- attributes that are required to be validated as a URL.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$uri_attributes | string[] | HTML attribute names whose value contains a URL. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_kses_uri_attributes', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_kses_uri_attributes', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii