_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)


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/privacy-functions.php


			

Top ↑

User Contributed Notes User Contributed Notes

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