edd_complete_purchase( int $payment_id, string $new_status, string $old_status )
Complete a purchase
Description Description
Performs all necessary actions to complete a purchase. Triggered by the edd_update_payment_status() function.
Parameters Parameters
- $payment_id
-
(Required) the ID number of the payment
- $new_status
-
(Required) the status of the payment, probably "publish"
- $old_status
-
(Required) the status of the payment prior to being marked as "complete", probably "pending"
Return Return
(void)
Source Source
File: includes/payments/actions.php
Changelog Changelog
Version | Description |
---|---|
1.0.8.3 | Introduced. |