WC_Privacy_Erasers
in package
WC_Privacy_Erasers Class.
Table of Contents
- customer_data_eraser() : array<string|int, mixed>
- Finds and erases customer data by email address.
- customer_tokens_eraser() : array<string|int, mixed>
- Finds and erases customer tokens by email address.
- download_data_eraser() : array<string|int, mixed>
- Finds and removes customer download logs by email address.
- order_data_eraser() : array<string|int, mixed>
- Finds and erases data which could be used to identify a person from WooCommerce data associated with an email address.
- remove_order_personal_data() : mixed
- Remove personal data specific to WooCommerce from an order object.
Methods
customer_data_eraser()
Finds and erases customer data by email address.
public
static customer_data_eraser(string $email_address, int $page) : array<string|int, mixed>
Parameters
- $email_address : string
-
The user email address.
- $page : int
-
Page.
Tags
Return values
array<string|int, mixed> — An array of personal data in name value pairscustomer_tokens_eraser()
Finds and erases customer tokens by email address.
public
static customer_tokens_eraser(string $email_address, int $page) : array<string|int, mixed>
Parameters
- $email_address : string
-
The user email address.
- $page : int
-
Page.
Tags
Return values
array<string|int, mixed> — An array of personal data in name value pairsdownload_data_eraser()
Finds and removes customer download logs by email address.
public
static download_data_eraser(string $email_address, int $page) : array<string|int, mixed>
Parameters
- $email_address : string
-
The user email address.
- $page : int
-
Page.
Tags
Return values
array<string|int, mixed> — An array of personal data in name value pairsorder_data_eraser()
Finds and erases data which could be used to identify a person from WooCommerce data associated with an email address.
public
static order_data_eraser(string $email_address, int $page) : array<string|int, mixed>
Orders are erased in blocks of 10 to avoid timeouts.
Parameters
- $email_address : string
-
The user email address.
- $page : int
-
Page.
Tags
Return values
array<string|int, mixed> — An array of personal data in name value pairsremove_order_personal_data()
Remove personal data specific to WooCommerce from an order object.
public
static remove_order_personal_data(WC_Order $order) : mixed
Note; this will hinder order processing for obvious reasons!
Parameters
- $order : WC_Order
-
Order object.