Get EDD Stats by Date Preset
edd_get_stats_by_presetRetrieve earnings or sales statistics using preset date filters such as today, this week, or this month. Simplify analytics with predefined time periods.
Instructions
Get earnings or sales statistics using a preset date filter (today, yesterday, this_week, this_month, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of stats: sales (count) or earnings (revenue) | |
| date | Yes | Predefined date filter |