wp_kses_hook
wp_kses_hook ( $content, $allowed_html, $allowed_protocols )
Parameters:- (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.
Returns:- (string) Filtered content through {@see 'pre_kses'} hook.
Defined at: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
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.