wp_kses_hook


wp_kses_hook ( $string, $allowed_html, $allowed_protocols )

Parameters:
  • (string) $string Content to filter through KSES.
  • (array[]|string) $allowed_html List of allowed HTML elements.
  • (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, {@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_hair, wp_kses_post, wp_kses, wp_kses_data, wp_kses_attr_check

Top Google Results

User discussions

wpseek mobile