Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
SectionInterface::add_block
Adds a new block to the section.
Method of the class: SectionInterface{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SectionInterface = new SectionInterface(); $SectionInterface->add_block( $block_config ): BlockInterface;
- $block_config(array) (required)
- block config.
SectionInterface::add_block() SectionInterface::add block code WC 10.8.1
public function add_block( array $block_config ): BlockInterface;