WordPress at a glance
function is not described

WP_Block_List::count() public WP 5.5.0

Returns the count of blocks in the list.

It's a method of the class: WP_Block_List{}

No Hooks.

Return

Int. Block count.

Usage

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

Changelog

Since 5.5.0 Introduced.

Code of WP_Block_List::count() WP 5.5.1

<?php
public function count() {
	return count( $this->blocks );
}