WP_HTML_Open_Elements::countpublicWP 6.4.0

Returns how many nodes are currently in the stack of open elements.

Method of the class: WP_HTML_Open_Elements{}

No Hooks.

Returns

Int. How many node are in the stack of open elements.

Usage

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->count(): int;

Changelog

Since 6.4.0 Introduced.

WP_HTML_Open_Elements::count() code WP 7.0

public function count(): int {
	return count( $this->stack );
}