wp_kses_hook

Definition:
function wp_kses_hook($string, $allowed_html, $allowed_protocols) {}

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

Parameters

  • string $string: Content to filter through kses
  • array $allowed_html: List of allowed HTML elements
  • array $allowed_protocols: Allowed protocol in links

Return values

returns:Filtered content through ‘pre_kses’ hook

Defined filters

  • pre_kses
    apply_filters('pre_kses', $string, $allowed_html, $allowed_protocols)

Source code

function wp_kses_hook($string, $allowed_html, $allowed_protocols) {

	$string = apply_filters('pre_kses', $string, $allowed_html, $allowed_protocols);

	return $string;

}

3829

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: