Automattic\WooCommerce\Admin\API\Reports\PerformanceIndicators
Controller::get_indicator_data()
Get information such as allowed stats, stat labels, and endpoint data from stats reports.
Method of the class: Controller{}
No Hooks.
Return
WP_Error|True
.
Usage
// private - for code of main (parent) class only $result = $this->get_indicator_data();
Controller::get_indicator_data() Controller::get indicator data code 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; }