WordPress at Your Fingertips
filter is not described

pre_kses filter-hook . WP 2.3.0

Filters content to be run through KSES.

Usage

add_filter( 'pre_kses', 'filter_function_name_9208', 10, 3 );
function filter_function_name_9208( $string, $allowed_html, $allowed_protocols ){
	// filter...

	return $string;
}
$string(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.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

wp_kses_hook()
pre_kses
wp-includes/kses.php 935
return apply_filters( 'pre_kses', $string, $allowed_html, $allowed_protocols );

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 258
add_filter( 'pre_kses', 'wp_pre_kses_less_than' );
wp-includes/default-filters.php 259
add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 );
wp-includes/formatting.php 5006
remove_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10 );
wp-includes/formatting.php 5008
add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 );