Automattic\WooCommerce\Internal\Features\ProductBlockEditor\ProductTemplates
ProductBlock::add_block()
Adds block to the section block.
Method of the class: ProductBlock{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ProductBlock = new ProductBlock(); $ProductBlock->&add_block( $block_config ): BlockInterface;
- $block_config(array) (required)
- The block data.
ProductBlock::add_block() ProductBlock::add block code WC 9.3.3
public function &add_block( array $block_config ): BlockInterface { $block = new ProductBlock( $block_config, $this->get_root_template(), $this ); return $this->add_inner_block( $block ); }