You appear to be a bot. Output may be restricted
Description
Attaches a payment ID to a customer
Usage
EDD_DB_Customers::attach_payment( $customer_id, $payment_id );
Parameters
- $customer_id
- ( mixed ) optional –
- $payment_id
- ( mixed ) optional –
Returns
void
Source
File name: easy-digital-downloads/includes/class-edd-db-customers.php
Lines:
1 to 12 of 12
public function attach_payment( $customer_id = 0, $payment_id = 0 ) { $customer = new EDD_Customer( $customer_id ); if( empty( $customer->id ) ) { return false; } // Attach the payment, but don't increment stats, as this function previously did not return $customer->attach_payment( $payment_id, false ); }