LLMS_Analytics_Sold_Widget::format_response()

Format response.


Source Source

File: includes/admin/reporting/widgets/class.llms.analytics.widget.sold.php

	protected function format_response() {

		if ( ! $this->is_error() ) {
			$results = $this->get_results();
			return llms_price_raw( floatval( is_array( $results ) ? array_sum( wp_list_pluck( $results, 'amount' ) ) : $results ) );

		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
unknown unknown
8.0.3 Using aggregate sum of net sales rather than summing up the txn records.
3.36.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.