WP HOOKS
filtrod 2.3.0

pre_kses

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

Opis — z kodu źródłowego

Filters content to be run through KSES.

Parametry

ParametrTypOpis
$contentstringContent to filter through KSES.
$allowed_htmlarray[] | stringAn 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_protocolsstring[]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
}

Popularne w tej kategorii