Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

SectionInterface::add_block()publicWC 1.0

Adds a new block to the section.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код SectionInterface::add_block() WC 9.7.1

public function add_block( array $block_config ): BlockInterface;