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

(Required) Content to filter through KSES.

$allowed_html

(Required) List of allowed HTML elements.

$allowed_protocols

(Required) Array of allowed URL protocols.

Return Return

(string) Filtered content through 'pre_kses' hook.

Source Source

File: wp-includes/kses.php

			return apply_filters( 'wp_kses_allowed_html', $allowedtags, $context );
	}
}

/**
 * You add any KSES hooks here.
 *
 * There is currently only one KSES WordPress hook, {@see 'pre_kses'}, and it is called here.
 * All parameters are passed to the hooks and expected to receive a string.
 *
 * @since 1.0.0
 *

Advertisement

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Advertisement

Leave a Reply