EDD_Customer::attach_payment( int $payment_id, bool $update_stats = true )
Attach payment to the customer then triggers increasing stats
Description Description
Parameters Parameters
- $payment_id
-
(Required) The payment ID to attach to the customer
- $update_stats
-
(Optional) For backwards compatibility, if we should increase the stats or not
Default value: true
Return Return
(bool) If the attachment was successfuly
Source Source
File: includes/class-edd-customer.php
Changelog Changelog
Version | Description |
---|---|
2.3 | Introduced. |