WP_HTML_Open_Elements::has_element_in_list_item_scope()
Returns whether a particular element is in list item 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_list_item_scope( $tag_name );
- $tag_name(строка) (обязательный)
- Name of tag to check.
Заметки
Список изменений
С версии 6.4.0 | Введена. |
С версии 6.5.0 | Implemented: no longer throws on every invocation. |
Код WP_HTML_Open_Elements::has_element_in_list_item_scope() WP HTML Open Elements::has element in list item scope WP 6.6.1
public function has_element_in_list_item_scope( $tag_name ) { return $this->has_element_in_specific_scope( $tag_name, array( // There are more elements that belong here which aren't currently supported. 'OL', 'UL', ) ); }