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.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More