Core Function
View Source on Trac ↗ wp_kses_one_attr()
wp_kses_one_attr( mixed $attr, mixed $element ) Filters one HTML attribute and ensures its value is allowed.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $attr string | The 'whole' attribute, including name and value. Required |
| $element string | The HTML element name to which the attribute belongs. Required |
Return Value
(string)
Filtered attribute.
Function Information
Since Version
4.2.3
Source File
wp-includes/kses.php
Advertisement