Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
GroupInterface::add_section
Adds a new section to the group
Method of the class: GroupInterface{}
No Hooks.
Returns
SectionInterface. new block section.
Usage
$GroupInterface = new GroupInterface(); $GroupInterface->add_section( $block_config ): SectionInterface;
- $block_config(array) (required)
- block config.
GroupInterface::add_section() GroupInterface::add section code WC 10.5.0
public function add_section( array $block_config ): SectionInterface;