WP_HTML_Open_Elements::count()
Returns how many nodes are currently in the stack of open elements.
Method of the class: WP_HTML_Open_Elements{}
No Hooks.
Return
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();
Changelog
Since 6.4.0 | Introduced. |
WP_HTML_Open_Elements::count() WP HTML Open Elements::count code WP 6.6.2
public function count() { return count( $this->stack ); }