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


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/user-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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