WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

AnalyticsDashboard::add_preload_endpoints() public WC 1.0

Preload data from API endpoints.

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

No Hooks.

Return

Array. Nothing.

Usage

$AnalyticsDashboard = new AnalyticsDashboard();
$AnalyticsDashboard->add_preload_endpoints( $endpoints );
$endpoints(array) (required)
Array of preloaded endpoints.

Code of AnalyticsDashboard::add_preload_endpoints() WC 5.3.0

<?php
public function add_preload_endpoints( $endpoints ) {
	$endpoints['performanceIndicators'] = '/wc-analytics/reports/performance-indicators/allowed';
	$endpoints['leaderboards']          = '/wc-analytics/leaderboards/allowed';
	return $endpoints;
}