Warning: This function has been deprecated. Please avoid usage of this function in favor of refund() in EDD_Payment instead.

edd_undo_purchase_on_refund( int $payment_id, string $new_status, string $old_status )

Reduces earnings and sales stats when a purchase is refunded


Description Description


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"


Top ↑

Source Source

File: includes/deprecated-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.7 Please avoid usage of this function in favor of refund() in EDD_Payment
1.8.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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