wp_kses_hook ( $content, $allowed_html, $allowed_protocols )

  • (string) content 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.
  • (string) Filtered content through {@see 'pre_kses'} hook.
Defined at:


You add any KSES hooks here.There is currently only one KSES WordPress hook, {@see 'pre_kses'}, 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, _save_post_hook, wp_kses_attr

Top Google Results

User discussions

wpseek mobile