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


Top ↑

Return Return

(array) Total amount of earnings based on the passed arguments.


Top ↑

Source Source

File: includes/payments/class-payment-stats.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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