Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
SubsectionInterface{}└─ BlockContainerInterface
Deprecated since 10.9.0 Product editor extension APIs will be removed in WooCommerce 11.0.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Interface for subsection containers, which contain sub-sections and blocks.
No Hooks.
Usage
$SubsectionInterface = new SubsectionInterface(); // use class methods
Methods
Changelog
| Deprecated since 10.9.0 | Product editor extension APIs will be removed in WooCommerce 11.0. |
SubsectionInterface{} SubsectionInterface{} code WC 10.9.1
interface SubsectionInterface extends BlockContainerInterface {
/**
* Adds a new block to the sub-section.
*
* @param array $block_config block config.
*/
public function add_block( array $block_config ): BlockInterface;
}