WP_HTML_Open_Elements::has_element_in_select_scope()publicWP 6.4.0

Returns whether a particular element is in select scope.

Метод класса: WP_HTML_Open_Elements{}

Хуков нет.

Возвращает

true|false. Whether given element is in scope.

Использование

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->has_element_in_select_scope( $tag_name );
$tag_name(строка) (обязательный)
Name of tag to check.

Заметки

Список изменений

С версии 6.4.0 Введена.

Код WP_HTML_Open_Elements::has_element_in_select_scope() 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.
}