Core Function
View Source on Trac ↗ wp_kses_hook()
wp_kses_hook( mixed $content, mixed $allowed_html, mixed $allowed_protocols ) You add any KSES hooks here.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $content string | Content to filter through KSES. Required |
| mixed | (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. Required |
| $allowed_protocols string[] | Array of allowed URL protocols. Required |
Return Value
(string)
Filtered content through {@see 'pre_kses'} hook.
Function Information
Since Version
1.0.0
Source File
wp-includes/kses.php
Advertisement