Automattic\WooCommerce\Internal\Features\ProductBlockEditor\ProductTemplates
Section::add_section()
Deprecated from version 8.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Add a sub-section block type to this template.
Method of the class: Section{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Section = new Section(); $Section->add_section( $block_config ): SubsectionInterface;
- $block_config(array) (required)
- The block data.
Changelog
Deprecated since | 8.6.0 |
Section::add_section() Section::add section code WC 9.3.3
public function add_section( array $block_config ): SubsectionInterface { wc_deprecated_function( 'add_section', '8.6.0', 'add_subsection' ); return $this->add_subsection( $block_config ); }