Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

SectionInterface::add_subsection()publicWC 1.0

Adds a new sub-section to the section.

Метод класса: SectionInterface{}

Хуков нет.

Возвращает

SubsectionInterface. new block sub-section.

Использование

$SectionInterface = new SectionInterface();
$SectionInterface->add_subsection( $block_config ): SubsectionInterface;
$block_config(массив) (обязательный)
block config.

Код SectionInterface::add_subsection() WC 9.7.1

public function add_subsection( array $block_config ): SubsectionInterface;