W3cubDocs

/WordPress

apply_filters( 'kses_allowed_protocols', array $protocols )

Filters the list of protocols allowed in HTML attributes.

Description

Parameters

$protocols

(array) Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.

Source

File: wp-includes/functions.php

View on Trac

Changelog

Version Description
3.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/kses_allowed_protocols