wp_kses_uri_attributes

过滤钩子


apply_filters( 'wp_kses_uri_attributes', $uri_attributes )
参数
  • (string[])
    $uri_attributes
    HTML attribute names whose value contains a URL.
    Required:
定义位置
  • wp-includes/kses.php
    , line 1030
引入
5.0.1
弃用

Filters the list of attributes that are required to contain a URL.

Use this filter to add any data- attributes that are required to be validated as a URL.

过滤需要包含一个URL的属性列表。

使用这个过滤器来添加任何需要验证为URL的 data- 属性。

$uri_attributes = apply_filters( 'wp_kses_uri_attributes', $uri_attributes );