WP_HTML_Open_Elements::current_node
Returns the node at the end of the stack of open elements, if one exists. If the stack is empty, returns null.
Метод класса: WP_HTML_Open_Elements{}
Хуков нет.
Возвращает
WP_HTML_Token|null. Last node in the stack of open elements, if one exists, otherwise null.
Использование
$WP_HTML_Open_Elements = new WP_HTML_Open_Elements(); $WP_HTML_Open_Elements->current_node(): ?WP_HTML_Token;
Список изменений
| С версии 6.4.0 | Введена. |
Код WP_HTML_Open_Elements::current_node() WP HTML Open Elements::current node WP 7.0.3
public function current_node(): ?WP_HTML_Token {
$current_node = end( $this->stack );
return $current_node ? $current_node : null;
}