On this page
apply_filters( 'sanitize_html_class', string $sanitized, string $class, string $fallback )
Filters a sanitized HTML class string.
Parameters
$sanitizedstring-
The sanitized HTML class.
$classstring-
HTML class before sanitization.
$fallbackstring-
The fallback string.
Source
File: wp-includes/formatting.php. View all references
return apply_filters( 'sanitize_html_class', $sanitized, $class, $fallback );
Related
Used By
| Used By | Description |
|---|---|
| sanitize_html_class() wp-includes/formatting.php | Sanitizes an HTML classname to ensure it only contains valid characters. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_html_class