WP_HTML_Processor::has_class( string $wanted_class ): bool|null

In this article

Returns if a matched tag contains the given ASCII case-insensitive class name.

Parameters

$wanted_classstringrequired
Look for this CSS class name, ASCII case-insensitive.

Return

bool|null Whether the matched tag contains the given class name, or null if not matched.

Source

*
* @since 6.7.0 Stub implementation.
*

Changelog

VersionDescription
6.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.