LLMS_Analytics_Sales::total_sales( [array] $search )
Total sales html block
Description Description
Parameters Parameters
- $search
-
([array]) (Required) [array of order objects]
Return Return
([html])
Source Source
File: includes/admin/analytics/class.llms.analytics.sales.php
public function total_sales( $search ) { $html = '<p class="llms-label">' . __( 'Total Sold', 'lifterlms' ) . '</p>'; $html .= '<h1>' . LLMS_Number::format_money_no_decimal( LLMS_Analytics::get_total_sales( $search->results ) ) . '</h1>'; return $html; }
Expand full source code Collapse full source code View on GitHub