wp_kses_uri_attributes filter-hook . WP 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.
Usage
add_filter( 'wp_kses_uri_attributes', 'filter_function_name_5903' ); function filter_function_name_5903( $uri_attributes ){ // filter... return $uri_attributes; }
- $uri_attributes(string[])
- HTML attribute names whose value contains a URL.
Changelog
Since 5.0.1 | Introduced. |
Where the hook is called
wp_kses_uri_attributes
wp-includes/kses.php 1021
$uri_attributes = apply_filters( 'wp_kses_uri_attributes', $uri_attributes );