apply_filters( ‘wp_kses_uri_attributes’, string[] $uri_attributes )

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

Description

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

Parameters

$uri_attributesstring[]
HTML attribute names whose value contains a URL.

Source

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

Changelog

VersionDescription
5.0.1Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.