wp_kses_hook

Advertisement

Summery Summery

You add any KSES hooks here.

Syntax Syntax

wp_kses_hook( string $string, array[]|string $allowed_html, string[] $allowed_protocols )

Description Description

There is currently only one KSES WordPress hook, ‘pre_kses’, and it is called here. All parameters are passed to the hooks and expected to receive a string.

Parameters Parameters

$string

(string) (Required) Content to filter through KSES.

$allowed_html

(array[]|string) (Required) List of allowed HTML elements.

$allowed_protocols

(string[]) (Required) Array of allowed URL protocols.

Return Return

(string) Filtered content through 'pre_kses' hook.

Source Source

File: wp-includes/kses.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.