On this page
apply_filters( 'kses_allowed_protocols', string[] $protocols )
Filters the list of protocols allowed in HTML attributes.
Parameters
$protocolsstring[]-
Array of allowed protocols e.g.
'http','ftp','tel', and more.
Source
File: wp-includes/functions.php. View all references
$protocols = array_unique( (array) apply_filters( 'kses_allowed_protocols', $protocols ) );
Related
Used By
| Used By | Description |
|---|---|
| wp_allowed_protocols() wp-includes/functions.php | Retrieves a list of protocols to allow in HTML attributes. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/kses_allowed_protocols