Automattic\WooCommerce\Internal\Features\ProductBlockEditor\ProductTemplates
Section::add_section
Deprecated since 8.6.0. It is no longer supported and may 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.
Returns
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.9.4
public function add_section( array $block_config ): SubsectionInterface { wc_deprecated_function( 'add_section', '8.6.0', 'add_subsection' ); return $this->add_subsection( $block_config ); }