Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

SectionInterface::add_block()publicWC 1.0

Adds a new block to the section.

Method of the class: SectionInterface{}

No Hooks.

Return

null. Nothing (null).

Usage

$SectionInterface = new SectionInterface();
$SectionInterface->add_block( $block_config ): BlockInterface;
$block_config(array) (required)
block config.

SectionInterface::add_block() code WC 9.1.2

public function add_block( array $block_config ): BlockInterface;