WP_Block_List::offsetGet( $offset )

In this article

Source

public function offsetGet( $offset ) {
	$block = $this->blocks[ $offset ];

	if ( isset( $block ) && is_array( $block ) ) {
		$block = new WP_Block( $block, $this->available_context, $this->registry );

		$this->blocks[ $offset ] = $block;
	}

	return $block;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.