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' => 30, 'attributes' => array( 'title' => __( 'Advanced Options', 'tier-pricing-table' ), 'description' => __( 'Override global settings such as pricing layout for this product.', 'tier-pricing-table' ), 'blockGap' => 'unit-40', ), ) ); } } public function getSupportedProductTypes(): array { return apply_filters( 'tiered_pricing_table/product_editor/advanced-section/supported_types', array( 'simple-product' ) ); } }