WordPress at Your Fingertips
filter is not described

pre_kses filter-hook . WP 2.3.0

Filters content to be run through KSES.


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

	return $string;
Content to filter through KSES.
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.
Array of allowed URL protocols.


Since 2.3.0 Introduced.

Where the hook is called

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 );