kses_allowed_protocols WordPress Filter Hook
The kses_allowed_protocols Wordpress hook allows you to add additional protocols to the kses allowed protocols filter. This can be useful if you want to allow certain protocols that are not normally allowed by kses, such as the ftp or gopher protocols.
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
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |