wp_kses_attr_check ( $name, $value, $whole, $vless, $element, $allowed_html )

  • (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.
  • (bool) Whether or not the attribute is allowed.
Defined at:
Change Log:
  • 5: .


Determines whether an attribute is allowed.

Related Functions

wp_kses_attr, wp_kses_attr_parse, wp_kses_array_lc, wp_kses_one_attr, wp_auth_check

Top Google Results

User discussions

wpseek mobile