Filter hook 'wp_kses_uri_attributes'

in WP Core File wp-includes/kses.php at line 1047

Description

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.

Occurrences

Filename Line Number
wp-includes/kses.php 1047

Parameters

Type Name Description
string[] $uri_attributes HTML attribute names whose value contains a URL.

PHP Doc

/**
	 * 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 string[] $uri_attributes HTML attribute names whose value contains a URL.
	 */