WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Analytics::add_user_data_fields() public WC 1.0

Adds fields so that we can store user preferences for the columns to display on a report.

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

No Hooks.

Return

Array. Nothing.

Usage

$Analytics = new Analytics();
$Analytics->add_user_data_fields( $user_data_fields );
$user_data_fields(array) (required)
User data fields.

Code of Analytics::add_user_data_fields() WC 5.3.0

<?php
public function add_user_data_fields( $user_data_fields ) {
	return array_merge(
		$user_data_fields,
		array(
			'categories_report_columns',
			'coupons_report_columns',
			'customers_report_columns',
			'orders_report_columns',
			'products_report_columns',
			'revenue_report_columns',
			'taxes_report_columns',
			'variations_report_columns',
		)
	);
}