Core Function
View Source on Trac ↗ wp_pre_kses_block_attributes()
wp_pre_kses_block_attributes( mixed $content, mixed $allowed_html, mixed $allowed_protocols ) Removes non-allowable HTML from parsed block attribute values when filtering
Parameters 3 required
| Name / Type | Description |
|---|---|
| $content string | Content to be run through KSES. Required |
| mixed | (array[] | string) $allowed_html An array of allowed HTML elements and attributes, or a context name such as 'post'. Required |
| $allowed_protocols string[] | Array of allowed URL protocols. Required |
Return Value
(string)
Filtered text to run through KSES.
Function Information
Since Version
5.3.1
Source File
wp-includes/formatting.php
Advertisement