Automattic\WooCommerce\Admin\API\Reports\PerformanceIndicators
Controller::get_indicator_data
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() Controller::get indicator data WC 11.0.1
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;
}