On this page
apply_filters( 'wp_kses_allowed_html', array[] $html, string $context )
Filters the HTML tags that are allowed for a given context.
Description
HTML tags and attribute names are case-insensitive in HTML but must be added to the KSES allow list in lowercase. An item added to the allow list in upper or mixed case will not recognized as permitted by KSES.
Parameters
$htmlarray[]-
Allowed HTML tags.
$contextstring-
Context name.
Source
File: wp-includes/kses.php. View all references
return apply_filters( 'wp_kses_allowed_html', $html, $context );
Related
Used By
| Used By | Description |
|---|---|
| wp_kses_allowed_html() wp-includes/kses.php | Returns an array of allowed HTML tags and attributes for a given context. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_kses_allowed_html