WP_Block_List::offsetUnset

Advertisement

Summery Summery

Unset a block.

Syntax Syntax

WP_Block_List::offsetUnset( string $index )

Parameters Parameters

$index

(Required) Index of block value to unset.

Source Source

File: wp-includes/class-wp-block-list.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply