WP_Block_List::offsetSet() WordPress Method
This method sets the value at the specified offset in the block list.
WP_Block_List::offsetSet( $index, $value ) #
Contents
Source
File: wp-includes/class-wp-block-list.php
public function offsetSet( $index, $value ) { if ( is_null( $index ) ) { $this->blocks[] = $value; } else { $this->blocks[ $index ] = $value; } }
Expand full source codeCollapse full source codeView on TracView on GitHub