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