WP_HTML_Active_Formatting_Elements::count()publicWP 6.4.0

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

Method of the class: WP_HTML_Active_Formatting_Elements{}

No Hooks.

Return

Int. How many node are in the stack of active formatting elements.

Usage

$WP_HTML_Active_Formatting_Elements = new WP_HTML_Active_Formatting_Elements();
$WP_HTML_Active_Formatting_Elements->count();

Changelog

Since 6.4.0 Introduced.

WP_HTML_Active_Formatting_Elements::count() code WP 6.7.1

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