WP_Block_List::count()publicWP 5.5.0ReturnTypeWillChange

Returns the count of blocks in the list.

Метод класса: WP_Block_List{}

Хуков нет.

Возвращает

int. Block count.

Использование

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

Список изменений

С версии 5.5.0 Введена.

Код WP_Block_List::count() WP 6.5.2

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