edd_undo_purchase( int $download_id = false, int $payment_id )
Undos a purchase, including the decrease of sale and earning stats. Used for when refunding or deleting a purchase
Description Description
Parameters Parameters
- $download_id
-
(Optional) Download (Post) ID
Default value: false
- $payment_id
-
(Required) Payment ID
Return Return
(void)
Source Source
File: includes/payments/functions.php
Changelog Changelog
Version | Description |
---|---|
1.0.8.1 | Introduced. |