Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

SectionInterface::add_section()publicWC 1.0

Deprecated from version 8.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Adds a new sub-section to the section.

Method of the class: SectionInterface{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Deprecated since 8.6.0

SectionInterface::add_section() code WC 9.7.1

public function add_section( array $block_config ): SubsectionInterface;