WP_HTML_Open_Elements::has_element_in_select_scope()publicWP 6.4.0

Returns whether a particular element is in select scope.

Method of the class: WP_HTML_Open_Elements{}

No Hooks.

Return

true|false. Whether given element is in scope.

Usage

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->has_element_in_select_scope( $tag_name );
$tag_name(string) (required)
Name of tag to check.

Notes

Changelog

Since 6.4.0 Introduced.

WP_HTML_Open_Elements::has_element_in_select_scope() code WP 6.6.2

public function has_element_in_select_scope( $tag_name ) {
	throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on select scope.' );

	return false; // The linter requires this unreachable code until the function is implemented and can return.
}