get_id(), $this->getSupportedProductTypes() ) ) { $group = $template->get_group_by_id( TieredPricingGroup::ID ); if ( ! $group ) { return; } $this->sectionInstance = $group->add_section( array( 'id' => self::ID, 'order' => 10, 'attributes' => array( 'title' => __( 'Tiered Pricing', 'tier-pricing-table' ), 'description' => __( 'Specify tiered pricing and quantity limits.', 'tier-pricing-table' ), 'blockGap' => 'unit-40', ), ) ); } } public function getSupportedProductTypes(): array { return apply_filters( 'tiered_pricing_table/product_editor/main-section/supported_types', array( 'product-variation', 'simple-product' ) ); } }