Automattic\WooCommerce\Internal\Features\ProductBlockEditor\ProductTemplates
Section::add_subsection
Add a sub-section block type to this template.
Method of the class: Section{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Section = new Section(); $Section->add_subsection( $block_config ): SubsectionInterface;
- $block_config(array) (required)
- The block data.
Section::add_subsection() Section::add subsection code WC 10.3.6
public function add_subsection( array $block_config ): SubsectionInterface {
$block = new Subsection( $block_config, $this->get_root_template(), $this );
return $this->add_inner_block( $block );
}