Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
EDD_Payment::maybe_alter_stats( bool $alter_store_earnings, bool $alter_customer_value, bool $alter_customer_purchase_count )
Used during the process of moving to refunded or pending, to decrement stats
Description Description
Parameters Parameters
- $alter_store_earnings
-
(Required) If the method should alter the store earnings
- $alter_customer_value
-
(Required) If the method should reduce the customer value
- $alter_customer_purchase_count
-
(Required) If the method should reduce the customer's purchase count
Return Return
(void)
Source Source
File: includes/payments/class-edd-payment.php
Changelog Changelog
Version | Description |
---|---|
2.5.10 | Introduced. |