WP_Block_List::offsetGet( $index )


Source

File: wp-includes/class-wp-block-list.php. View all references

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

	if ( isset( $block ) && is_array( $block ) ) {
		$block                  = new WP_Block( $block, $this->available_context, $this->registry );
		$this->blocks[ $index ] = $block;
	}

	return $block;
}


Top ↑

User Contributed Notes

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