WooCommerce Code Reference

WC_Privacy_Exporters
in package

WC_Privacy_Exporters Class.

Table of Contents

customer_data_exporter()  : array
Finds and exports customer data by email address.
customer_tokens_exporter()  : array
Finds and exports payment tokens by email address for a customer.
download_data_exporter()  : array
Finds and exports customer download logs by email address.
order_data_exporter()  : array
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
Get personal data (key/value pairs) for a user object.
get_download_personal_data()  : array
Get personal data (key/value pairs) for a download object.
get_order_personal_data()  : array
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
Parameters
$email_address : string

The user email address.

Tags
since
3.4.0
Return values
arrayAn array of personal data in name value pairs

customer_tokens_exporter()

Finds and exports payment tokens by email address for a customer.

public static customer_tokens_exporter(string $email_address, int $page) : array
Parameters
$email_address : string

The user email address.

$page : int

Page.

Tags
since
3.4.0
Return values
arrayAn array of personal data in name value pairs

download_data_exporter()

Finds and exports customer download logs by email address.

public static download_data_exporter(string $email_address, int $page) : array
Parameters
$email_address : string

The user email address.

$page : int

Page.

Tags
since
3.4.0
throws
Exception

When WC_Data_Store validation fails.

Return values
arrayAn array of personal data in name value pairs

order_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

Orders are exported in blocks of 10 to avoid timeouts.

Parameters
$email_address : string

The user email address.

$page : int

Page.

Tags
since
3.4.0
Return values
arrayAn array of personal data in name value pairs

get_customer_personal_data()

Get personal data (key/value pairs) for a user object.

protected static get_customer_personal_data(WP_User $user) : array
Parameters
$user : WP_User

user object.

Tags
since
3.4.0
throws
Exception

If customer cannot be read/found and $data is set to WC_Customer class.

Return values
array

get_download_personal_data()

Get personal data (key/value pairs) for a download object.

protected static get_download_personal_data(WC_Order $download) : array
Parameters
$download : WC_Order

Download object.

Tags
since
3.4.0
Return values
array

get_order_personal_data()

Get personal data (key/value pairs) for an order object.

protected static get_order_personal_data(WC_Order $order) : array
Parameters
$order : WC_Order

Order object.

Tags
since
3.4.0
Return values
array