WP_Block_List::offsetUnset() WordPress Method
The WP_Block_List::offsetUnset() method is used to remove a block from the list of blocks. The block is removed by its key, which is the index of the block in the list.
WP_Block_List::offsetUnset( $index ) #
Contents
Source
File: wp-includes/class-wp-block-list.php
public function offsetUnset( $index ) { unset( $this->blocks[ $index ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub