WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API\Reports\Customers

Controller::prepare_item_for_export() public WC 1.0

Get the column values for export.

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

Return

Array. Key value pair of Column ID => Row Value.

Usage

$Controller = new Controller();
$Controller->prepare_item_for_export( $item );
$item(array) (required)
Single report item/row.

Code of Controller::prepare_item_for_export() WC 6.1.0

public function prepare_item_for_export( $item ) {
	$export_item = array(
		'name'            => $item['name'],
		'username'        => $item['username'],
		'last_active'     => $item['date_last_active'],
		'registered'      => $item['date_registered'],
		'email'           => $item['email'],
		'orders_count'    => $item['orders_count'],
		'total_spend'     => self::csv_number_format( $item['total_spend'] ),
		'avg_order_value' => self::csv_number_format( $item['avg_order_value'] ),
		'country'         => $item['country'],
		'city'            => $item['city'],
		'region'          => $item['state'],
		'postcode'        => $item['postcode'],
	);

	return apply_filters(
		'woocommerce_report_customers_prepare_export_item',
		$export_item,
		$item
	);
}