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
Filed under: /wp-includes/kses.php, Documentation, Files, Filters, Filters by letter p, Functions, Functions by letter w Tagged: codex, id469c8886fb2b847c7dbfe6c85cce956e, pre_kses, wp_kses_hook
