WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Analytics::add_preload_endpoints() public WC 1.0

Preload data from the countries endpoint.

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

No Hooks.

Return

Array. Nothing.

Usage

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

Code of Analytics::add_preload_endpoints() WC 5.2.2

<?php
public function add_preload_endpoints( $endpoints ) {
	$endpoints['countries'] = '/wc-analytics/data/countries';
	return $endpoints;
}