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:

Description

Determines whether an attribute is allowed.

Related Functions

wp_kses_attr, wp_kses_attr_parse, wp_auth_check, wp_kses_array_lc, wp_kses_one_attr

Top Google Results

User discussions

wpseek mobile