WP_Block_List::count

Advertisement

Summery Summery

Returns the count of blocks in the list.

Syntax Syntax

WP_Block_List::count()

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

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.