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



kses_allowed_protocols › WordPress过滤钩子

Since3.0.0
已弃用n/a
› apply_filters( 'kses_allowed_protocols', $protocols )
参数:
  • () protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.
    Required: Yes
定义在:
文档:

Filters the list of protocols allowed in HTML attributes.





源码

$protocols = array_unique( (array) apply_filters( 'kses_allowed_protocols', $protocols ) );