Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

SectionInterface::add_sectionpublicWC 1.0

Deprecated since 8.6.0. It is no longer supported and may 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.

Returns

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 10.6.2

public function add_section( array $block_config ): SubsectionInterface;