Filters the list of protocols allowed in HTML attributes.
Parameters
$protocols
string[]- Array of allowed protocols e.g.
'http'
,'ftp'
,'tel'
, and more.
Source
$protocols = array_unique( (array) apply_filters( 'kses_allowed_protocols', $protocols ) );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Allow Skype call links.
The filter should to run before init.
Note: this example only works in PHP 5.3+