edd_connect_guest_customer_to_existing_user( bool $success, int $payment_id, int $customer_id, object $customer )
Attach the customer to an existing user account when completing guest purchase
Description Description
This only runs when a user account already exists and a guest purchase is made with the account’s email address
After attaching the customer to the user ID, the account is set to pending
Parameters Parameters
- $success
-
(Required) True if payment was added successfully, false otherwise
- $payment_id
-
(Required) The ID of the EDD_Payment that was added
- $customer_id
-
(Required) The ID of the EDD_Customer object
- $customer
-
(Required) The EDD_Customer object
Return Return
(void)
Source Source
File: includes/user-functions.php
Changelog Changelog
Version | Description |
---|---|
2.8 | Introduced. |