Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

SubsectionInterface::add_block()publicWC 1.0

Adds a new block to the sub-section.

Method of the class: SubsectionInterface{}

No Hooks.

Return

null. Nothing (null).

Usage

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

SubsectionInterface::add_block() code WC 9.0.1

public function add_block( array $block_config ): BlockInterface;