wp_kses_hook


wp_kses_hook ( $string, $allowed_html, $allowed_protocols )

Parameters:
  • (string) string Content to filter through KSES.
  • (array[]|string) allowed_html 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.
  • (string[]) allowed_protocols Array of allowed URL protocols.
Returns:
  • (string) Filtered content through {@see 'pre_kses'} hook.
Defined at:

Description

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

Related Functions

wp_kses_post, wp_kses_hair, wp_kses, wp_set_auth_cookie, _save_post_hook

Top Google Results

User discussions

wpseek mobile