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