WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Products

Controller::_get_categories() protected WC 1.0

Get categories column export value.

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

No Hooks.

Return

String. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->_get_categories( $category_ids );
$category_ids(array) (required)
Category IDs from report row.

Code of Controller::_get_categories() WC 5.3.0

<?php
protected function _get_categories( $category_ids ) {
	$category_names = get_terms(
		array(
			'taxonomy' => 'product_cat',
			'include'  => $category_ids,
			'fields'   => 'names',
		)
	);

	return implode( ', ', $category_names );
}