A WordPress-centric search engine for devs and theme authors



sanitize_html_class ›

Since2.8.0
Deprecatedn/a
apply_filters( 'sanitize_html_class', $sanitized, $class, $fallback )
Parameters: (3)
  • (string) $sanitized The sanitized HTML class.
    Required: Yes
  • (string) $class HTML class before sanitization.
    Required: Yes
  • (string) $fallback The fallback string.
    Required: Yes
Defined at:
Codex:

Filters a sanitized HTML class string.





Source

return apply_filters( 'sanitize_html_class', $sanitized, $class, $fallback );