wp_kses_uri_attributes WordPress Filter Hook

The wp_kses_uri_attributes hook is used to filter the list of allowed attributes for a given URI.

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.


Top ↑

Parameters

$uri_attributes

(string[])HTML attribute names whose value contains a URL.


Top ↑

Source

File: wp-includes/kses.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.0.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.