Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::add_advanced_section_to_product_settings()privateWC 1.0

Handler for 'woocommerce_get_sections_products', adds the "Advanced" section to the product settings.

Метод класса: LookupDataStore{}

No Hooks.

Return

Array. New array of settings sections.

Usage

// private - for code of main (parent) class only
$result = $this->add_advanced_section_to_product_settings( $products ): array;
$products(array) (required)
Original array of settings sections.

Code of LookupDataStore::add_advanced_section_to_product_settings() WC 7.1.0

private function add_advanced_section_to_product_settings( array $products ): array {
	if ( $this->check_lookup_table_exists() ) {
		$products['advanced'] = __( 'Advanced', 'woocommerce' );
	}

	return $products;
}