sanitize_html_class filter-hook . WP 2.8.0
Filters a sanitized HTML class string.
Usage
add_filter( 'sanitize_html_class', 'filter_function_name_1367', 10, 3 ); function filter_function_name_1367( $sanitized, $class, $fallback ){ // filter... return $sanitized; }
- $sanitized(string)
- The sanitized HTML class.
- $class(string)
- HTML class before sanitization.
- $fallback(string)
- The fallback string.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
sanitize_html_class
wp-includes/formatting.php 2365
return apply_filters( 'sanitize_html_class', $sanitized, $class, $fallback );