wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_kses_allowed_html › WordPress过滤钩子

Since3.5.0
已弃用n/a
apply_filters( 'wp_kses_allowed_html', $html, $context )
参数: (2)
  • (array[]) $html Allowed HTML tags.
    Required: Yes
  • (string) $context Context name.
    Required: Yes
定义在:
文档:

Filters the HTML tags that are allowed for a given context.

HTML tags and attribute names are case-insensitive in HTML but must be added to the KSES allow list in lowercase. An item added to the allow list in upper or mixed case will not recognized as permitted by KSES.





源码

return apply_filters( 'wp_kses_allowed_html', $html, $context );