wp_kses_allowed_html

SummerySummery

Returns an array of allowed HTML tags and attributes for a given context.

Syntax

wp_kses_allowed_html( string|array $context = '' )

ParametersParameters

$context

(string|array) (Optional) The context for which to retrieve tags. Allowed values are 'post', 'strip', 'data', 'entities', or the name of a field filter such as 'pre_user_description'.

Default value: ''

ReturnReturn

(array) Array of allowed HTML tags and their allowed attributes.

SourceSource

File: wp-includes/kses.php


			

ChangelogChangelog

Changelog
Version Description
5.0.1 form removed as allowable HTML tag.
3.5.0 Introduced.
Scroll to Top