WC_Privacy_Exporters
in package
WC_Privacy_Exporters Class.
Table of Contents
- customer_data_exporter() : array<string|int, mixed>
- Finds and exports customer data by email address.
- customer_tokens_exporter() : array<string|int, mixed>
- Finds and exports payment tokens by email address for a customer.
- download_data_exporter() : array<string|int, mixed>
- Finds and exports customer download logs by email address.
- order_data_exporter() : array<string|int, mixed>
- Finds and exports data which could be used to identify a person from WooCommerce data associated with an email address.
- get_customer_personal_data() : array<string|int, mixed>
- Get personal data (key/value pairs) for a user object.
- get_download_personal_data() : array<string|int, mixed>
- Get personal data (key/value pairs) for a download object.
- get_order_personal_data() : array<string|int, mixed>
- Get personal data (key/value pairs) for an order object.
Methods
customer_data_exporter()
Finds and exports customer data by email address.
public
static customer_data_exporter(string $email_address) : array<string|int, mixed>
Parameters
- $email_address : string
-
The user email address.
Tags
Return values
array<string|int, mixed> — An array of personal data in name value pairscustomer_tokens_exporter()
Finds and exports payment tokens by email address for a customer.
public
static customer_tokens_exporter(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_exporter()
Finds and exports customer download logs by email address.
public
static download_data_exporter(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_exporter()
Finds and exports data which could be used to identify a person from WooCommerce data associated with an email address.
public
static order_data_exporter(string $email_address, int $page) : array<string|int, mixed>
Orders are exported 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 pairsget_customer_personal_data()
Get personal data (key/value pairs) for a user object.
protected
static get_customer_personal_data(WP_User $user) : array<string|int, mixed>
Parameters
- $user : WP_User
-
user object.
Tags
Return values
array<string|int, mixed> —get_download_personal_data()
Get personal data (key/value pairs) for a download object.
protected
static get_download_personal_data(WC_Order $download) : array<string|int, mixed>
Parameters
- $download : WC_Order
-
Download object.
Tags
Return values
array<string|int, mixed> —get_order_personal_data()
Get personal data (key/value pairs) for an order object.
protected
static get_order_personal_data(WC_Order $order) : array<string|int, mixed>
Parameters
- $order : WC_Order
-
Order object.