_edd_anonymize_customer( int $customer_id )
Given a customer ID, anonymize the data related to that customer.
Description Description
Only the customer record is affected in this function. The data that is changed:
- The name is changed to ‘Anonymized Customer’
- The email address is anonymized, but kept in a format that passes is_email checks
- The date created is set to the timestamp of 0 (January 1, 1970)
- Notes are fully cleared
- Any additional email addresses are removed
Once completed, a note is left stating when the customer was anonymized.
Parameters Parameters
- $customer_id
-
(Required)
Return Return
(array)
Source Source
File: includes/privacy-functions.php