Automattic\WooCommerce\Internal\Admin

Analytics::add_user_data_fields()publicWC 1.0

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

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

No Hooks.

Return

Array.

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 7.1.0

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',
			'dashboard_sections',
			'dashboard_chart_type',
			'dashboard_chart_interval',
			'dashboard_leaderboard_rows',
		)
	);
}