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.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More