WP_HTML_Active_Formatting_Elements::current_node(): WP_HTML_Token|null

In this article

Returns the node at the end of the stack of active formatting elements, if one exists. If the stack is empty, returns null.

Return

WP_HTML_Token|null Last node in the stack of active formatting elements, if one exists, otherwise null.

Source

public function current_node() {
	$current_node = end( $this->stack );

	return $current_node ? $current_node : null;
}

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.