Automattic\WooCommerce\Internal\Features\ProductBlockEditor\ProductTemplates

Group::add_sectionpublicWC 1.0

Add a section block type to this template.

Method of the class: Group{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Group = new Group();
$Group->add_section( $block_config ): SectionInterface;
$block_config(array) (required)
The block data.

Group::add_section() code WC 9.9.5

public function add_section( array $block_config ): SectionInterface {
	$block = new Section( $block_config, $this->get_root_template(), $this );
	return $this->add_inner_block( $block );
}