WordPress at a glance

wp_kses_uri_attributes() WP 1.0

Helper function listing HTML attributes containing a URL.

This function returns a list of all HTML attributes that must contain a URL according to the HTML specification.

This list includes URI attributes both allowed and disallowed by KSES.

✈ 1 time = 0.000001s = speed of light | 50000 times = 0.10s = speed of light | PHP 7.2.5, WP 5.0.1
Hooks from the function

Array. HTML attributes that must include a URL.




Since 5.0.1 Introduced.

Code of wp kses uri attributes: wp-includes/kses.php WP 5.3.2

function wp_kses_uri_attributes() {
	$uri_attributes = array(

	 * 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.
	 * @since 5.0.1
	 * @param array $uri_attributes HTML attributes requiring validation as a URL.
	$uri_attributes = apply_filters( 'wp_kses_uri_attributes', $uri_attributes );

	return $uri_attributes;

Related Functions

From tag: kses (html cleanup sanitize)

More from category: Helper Functions

No comments
        Log In . Register