WordPress at a glance
function is not described

wp_kses_hook() WP 1.0.0

You add any kses hooks here.

There is currently only one kses WordPress hook, 'pre_kses', and it is called here. All parameters are passed to the hooks and expected to receive a string.

Hooks in function

String. Filtered content through 'pre_kses' hook.


wp_kses_hook( $string, $allowed_html, $allowed_protocols );
$string(string) (required)
Content to filter through kses
$allowed_html(array) (required)
List of allowed HTML elements
$allowed_protocols(array) (required)
Allowed protocol in links

Code of wp kses hook: wp-includes/kses.php VER 5.0.3

function wp_kses_hook( $string, $allowed_html, $allowed_protocols ) {
	 * Filters content to be run through kses.
	 * @since 2.3.0
	 * @param string $string            Content to run through kses.
	 * @param array  $allowed_html      Allowed HTML elements.
	 * @param array  $allowed_protocols Allowed protocol in links.
	return apply_filters( 'pre_kses', $string, $allowed_html, $allowed_protocols );