sanitize_html_class WordPress Filter Hook
The sanitize_html_class hook is used to sanitize HTML class attributes. This hook is called by the sanitize_html_class() function.
apply_filters( 'sanitize_html_class', string $sanitized , string $class , string $fallback ) #
Filters a sanitized HTML class string.
Parameters
- $sanitized
(string)The sanitized HTML class.
- $class
(string)HTML class before sanitization.
- $fallback
(string)The fallback string.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |