Core Function
View Source on Trac ↗ wp_kses_hair()
wp_kses_hair( mixed $attr, mixed $allowed_protocols ) Builds an attribute list from string containing attributes.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $attr string | Attribute list from HTML element to closing HTML element tag. Required |
| $allowed_protocols string[] | Array of allowed URL protocols. Required |
Return Value
(array[])
Array of attribute information after parsing.
Function Information
Since Version
1.0.0
Source File
wp-includes/kses.php
Advertisement