Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

GroupInterface::add_block()publicWC 1.0

Adds a new block to the group.

Method of the class: GroupInterface{}

No Hooks.

Return

null. Nothing (null).

Usage

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

GroupInterface::add_block() code WC 9.7.1

public function add_block( array $block_config ): BlockInterface;