Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

GroupInterface::add_blockpublicWC 1.0

Adds a new block to the group.

Method of the class: GroupInterface{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

GroupInterface::add_block() code WC 10.5.0

public function add_block( array $block_config ): BlockInterface;