woocommerce
/
src
/
Admin
/
Features
/
ProductBlockEditor
/
ProductTemplates
/
SubsectionInterface.php
GroupInterface.php
1 month ago
ProductFormTemplateInterface.php
1 month ago
SectionInterface.php
1 month ago
SubsectionInterface.php
1 month ago
SubsectionInterface.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates; |
| 4 | |
| 5 | use Automattic\WooCommerce\Admin\BlockTemplates\BlockContainerInterface; |
| 6 | use Automattic\WooCommerce\Admin\BlockTemplates\BlockInterface; |
| 7 | |
| 8 | /** |
| 9 | * Interface for subsection containers, which contain sub-sections and blocks. |
| 10 | * |
| 11 | * @deprecated 10.9.0 Product editor extension APIs will be removed in WooCommerce 11.0. |
| 12 | */ |
| 13 | interface SubsectionInterface extends BlockContainerInterface { |
| 14 | /** |
| 15 | * Adds a new block to the sub-section. |
| 16 | * |
| 17 | * @param array $block_config block config. |
| 18 | */ |
| 19 | public function add_block( array $block_config ): BlockInterface; |
| 20 | } |
| 21 |