Retrieve earning stats
public get_earnings ( $form_id, $start_date = false, $end_date = false, $gateway_id = false ) : 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 donation earnings 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` | |
$gateway_id | string|bool The gateway to get earnings for such as 'paypal' or 'stripe' | |
return | float | integer | Total amount of donations based on the passed arguments. |