pre_kses
apply_filters( ‘pre_kses’, string $string , array[]|string $allowed_html , string[] $allowed_protocols )
过滤钩子:过滤要通过kse运行的内容。
Filter Hook: Filters content to be run through kses.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$string | (string) | 通过KSES运行的内容。 |
$allowed_html | (array[] | string) | 允许的HTML元素。 |
$allowed_protocols | (string[]) | 允许的URL协议的数组。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.3.0 | wp-includes/kses.php:914 | 1 | 0 |
pre_kses 为WP2原创文章,链接:https://www.wp2.cn/hook/pre_kses/