WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Categories

DataStore::include_extended_info() protected WC 1.0

Enriches the category data.

{} It's a method of the class: DataStore{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->include_extended_info( $categories_data, $query_args );
$categories_data(array) (required)
Categories data.
$query_args(array) (required)
Query parameters.

Code of DataStore::include_extended_info() WC 5.3.0

<?php
protected function include_extended_info( &$categories_data, $query_args ) {
	foreach ( $categories_data as $key => $category_data ) {
		$extended_info = new \ArrayObject();
		if ( $query_args['extended_info'] ) {
			$extended_info['name'] = get_the_category_by_ID( $category_data['category_id'] );
		}
		$categories_data[ $key ]['extended_info'] = $extended_info;
	}
}