WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp kses hook

Description

You add any kses hooks here.

There is currently only one kses WordPress hook and it is called here. All parameters are passed to the hooks and expected to recieve a string.

Usage

<?php wp_kses_hook$string$allowed_html$allowed_protocols ?>

Parameters

$string
(string) (required) Content to filter through kses
Default: None
$allowed_html
(array) (required) List of allowed HTML elements
Default: None
$allowed_protocols
(array) (required) Allowed protocol in links
Default: None

Return Values

(string) 
Filtered content through 'pre_kses' hook

Examples

Notes

Change Log

Since: 1.0.0

Source File

wp_kses_hook() is located in wp-includes/kses.php.

Related

See also index of Function Reference and index of Template Tags.