WordPress at a glance
function is not described

WP_Block_List::offsetUnset() public WP 5.5.0

Unset a block.

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

No Hooks.

Return

Null. Nothing.

Usage

$WP_Block_List = new WP_Block_List();
$WP_Block_List->offsetUnset( $index );
$index(string) (required)
Index of block value to unset.

Changelog

Since 5.5.0 Introduced.

Code of WP_Block_List::offsetUnset() WP 5.5.2

<?php
public function offsetUnset( $index ) {
	unset( $this->blocks[ $index ] );
}