W3cubDocs

/WordPress

apply_filters( 'pre_kses', string $string, array[]|string $allowed_html, string[] $allowed_protocols )

Filters content to be run through kses.

Description

Parameters

$string

(string) Content to run through KSES.

$allowed_html

(array[]|string) Allowed HTML elements.

$allowed_protocols

(string[]) Array of allowed URL protocols.

Source

File: wp-includes/kses.php

View on Trac

Changelog

Version Description
2.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_kses