WPDev.one
Core Function
View Source on Trac ↗

wp_kses_allowed_html()

wp_kses_allowed_html( mixed $context = '' )

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

Parameters 1 required

Name / Type Description
mixed

(string | array) $context 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', or an array of allowed HTML elements and attributes.

Required

Return Value

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

Function Information

Since Version
3.5.0
Source File
wp-includes/kses.php
Advertisement