Retrieve sale stats
public get_sales ( $form_id, $start_date = false, $end_date = false, $status = 'publish' ) : float | integer | ||
$form_id | int The donation form to retrieve stats for. If false, gets stats for all forms | |
$start_date | string|bool The starting date for which we'd like to filter our sale stats. If false, we'll use the default start date of `this_month` | |
$end_date | string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month` | |
$status | string|array The sale status(es) to count. Only valid when retrieving global stats | |
return | float | integer | Total amount of donations based on the passed arguments. |