Automattic\WooCommerce\Admin\API\Reports\PerformanceIndicators

Controller::get_indicator_data()privateWC 1.0

Get information such as allowed stats, stat labels, and endpoint data from stats reports.

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

Хуков нет.

Возвращает

WP_Error|True.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_indicator_data();

Код Controller::get_indicator_data() WC 8.7.0

private function get_indicator_data() {
	// Data already retrieved.
	if ( ! empty( $this->endpoints ) && ! empty( $this->labels ) && ! empty( $this->allowed_stats ) ) {
		return true;
	}

	$this->get_analytics_report_data();
	$this->get_jetpack_modules_data();

	return true;
}