WP_Block_List::offsetUnset()
Unset a block.
Method of the class: WP_Block_List{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Block_List = new WP_Block_List(); $WP_Block_List->offsetUnset( $offset );
- $offset(string) (required)
- Offset of block value to unset.
Changelog
Since 5.5.0 | Introduced. |
WP_Block_List::offsetUnset() WP Block List::offsetUnset code WP 6.7.1
public function offsetUnset( $offset ) { unset( $this->blocks[ $offset ] ); }