Automattic\WooCommerce\Admin\API\Reports

DataStore::get_noncached_datapublicWC 1.0

Returns the report data based on normalized parameters. Will be called by get_data if there is no data in cache.

Method of the class: DataStore{}

No Hooks.

Returns

stdClass|WP_Error. Data object { totals: *, intervals: array, total: int, pages: int, page_no: int }, or error.

Usage

$DataStore = new DataStore();
$DataStore->get_noncached_data( $query_args );
$query_args(array) (required)
Query parameters.

Notes

  • See: get_data

DataStore::get_noncached_data() code WC 9.9.4

public function get_noncached_data( $query_args ) {
	/* translators: %s: Method name */
	return new \WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass.", 'woocommerce' ), __METHOD__ ), array( 'status' => 405 ) );
}