Summery Summery
Returns the count of blocks in the list.
Syntax Syntax
Return Return
(int) Block count.
Source Source
File: wp-includes/class-wp-block-list.php
public function count() {
return count( $this->blocks );
}
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |