W3cubDocs

/WordPress

apply_filters( ‘sanitize_html_class’, string $sanitized, string $classname, string $fallback )

Filters a sanitized HTML class string.

Parameters

$sanitizedstring
The sanitized HTML class.
$classnamestring
HTML class before sanitization.
$fallbackstring
The fallback string.

Source

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

Changelog

Version Description
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_html_class