kses_allowed_protocols filter-hook . WP 3.0.0
Filters the list of protocols allowed in HTML attributes.
Usage
add_filter( 'kses_allowed_protocols', 'filter_function_name_1668' ); function filter_function_name_1668( $protocols ){ // filter... return $protocols; }
- $protocols(string[])
- Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
kses_allowed_protocols
wp-includes/functions.php 6396
$protocols = array_unique( (array) apply_filters( 'kses_allowed_protocols', $protocols ) );