edd_decrease_earnings( int $download_id, int $amount )
Decreases the total earnings of a download. Primarily for when a purchase is refunded.
Description Description
Parameters Parameters
- $download_id
-
(Required) Download ID
- $amount
-
(Required) Earnings
Return Return
(bool|int)
Source Source
File: includes/download-functions.php
Changelog Changelog
Version | Description |
---|---|
1.0.8.1 | Introduced. |