apply_filters( 'kses_allowed_protocols', string[] $protocols )
Filters the list of protocols allowed in HTML attributes.
Parameters
-
$protocols
string[] -
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 ) );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Allow Skype call links.
The filter should to run before init.
Note: this example only works in PHP 5.3+