wp_kses_attr_check
wp_kses_attr_check ( $name, $value, $whole, $vless, $element, $allowed_html )
Parameters:- (string) name The attribute name. Passed by reference. Returns empty string when not allowed.
- (string) value The attribute value. Passed by reference. Returns a filtered value.
- (string) whole The `name=value` input. Passed by reference. Returns filtered input.
- (string) vless Whether the attribute is valueless. Use 'y' or 'n'.
- (string) element The name of the element to which this attribute belongs.
- (array) allowed_html The full list of allowed elements and attributes.
Returns:- (bool) Whether or not the attribute is allowed.
Defined at:Change Log: - Introduced in WordPress: 4.2.3
- Deprecated in WordPress: —
Description
Determines whether an attribute is allowed.