filtrod 2.3.0
pre_kses
Opis — z kodu źródłowego
Filters content to be run through KSES.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$content | string | Content to filter through KSES. |
$allowed_html | array[] | string | An array of allowed HTML elements and attributes, or a context name such as 'post'. See wp_kses_allowed_html() for the list of accepted context names. |
$allowed_protocols | string[] | Array of allowed URL protocols. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pre_kses', '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( 'pre_kses', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii