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