Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

SubsectionInterface{}WC 1.0

Interface for subsection containers, which contain sub-sections and blocks.

No Hooks.

Usage

$SubsectionInterface = new SubsectionInterface();
// use class methods

Methods

  1. public add_block( array $block_config )

SubsectionInterface{} code WC 9.0.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;
}