WP_Block_List::rewindpublicWP 5.5.0ReturnTypeWillChange

Rewinds back to the first element of the Iterator.

Method of the class: WP_Block_List{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 5.5.0 Introduced.

WP_Block_List::rewind() code WP 6.8.1

public function rewind() {
	reset( $this->blocks );
}