Automattic\WooCommerce\Internal\Features\ProductBlockEditor\ProductTemplates
ProductVariationTemplate::add_group_blocks()
Adds the group blocks to the template.
Method of the class: ProductVariationTemplate{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->add_group_blocks();
ProductVariationTemplate::add_group_blocks() ProductVariationTemplate::add group blocks code WC 9.3.3
protected function add_group_blocks() { $this->add_group( array( 'id' => $this::GROUP_IDS['GENERAL'], 'order' => 10, 'attributes' => array( 'title' => __( 'General', 'woocommerce' ), ), ) ); $this->add_group( array( 'id' => $this::GROUP_IDS['INVENTORY'], 'order' => 30, 'attributes' => array( 'title' => __( 'Inventory', 'woocommerce' ), ), ) ); $this->add_group( array( 'id' => $this::GROUP_IDS['SHIPPING'], 'order' => 40, 'attributes' => array( 'title' => __( 'Shipping', 'woocommerce' ), ), ) ); }