Automattic\WooCommerce\Internal\Admin

Analytics::add_preload_endpoints()publicWC 1.0

Preload data from the countries endpoint.

Method of the class: Analytics{}

No Hooks.

Return

Array.

Usage

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

Analytics::add_preload_endpoints() code WC 7.1.1

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