EDD_Payment_Stats::get_earnings_by_range( $range = 'today', $day_by_day = false, string|bool $start_date = false, string|bool $end_date = false, bool $include_taxes = true )
Retrieve sales stats based on range provided (used for Reporting)
Description Description
Parameters Parameters
- $start_date
-
(Optional) The starting date for which we'd like to filter our earnings stats. If false, we'll use the default start date of
this_month
Default value: false
- $end_date
-
(Optional) The end date for which we'd like to filter our earnings stats. If false, we'll use the default end date of
this_month
Default value: false
- $include_taxes
-
(Optional) If taxes should be included in the earnings graphs
Default value: true
Return Return
(array) Total amount of earnings based on the passed arguments.
Source Source
File: includes/payments/class-payment-stats.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |