WooCommerce Code Reference

Search results

WC_Privacy_Erasers

WC_Privacy_Erasers Class.

Table of Contents

customer_data_eraser() Finds and erases customer data by email address. array
order_data_eraser() Finds and erases data which could be used to identify a person from WooCommerce data assocated with an email address. array
download_data_eraser() Finds and removes customer download logs by email address. array
remove_order_personal_data() Remove personal data specific to WooCommerce from an order object. mixed
customer_tokens_eraser() Finds and erases customer tokens by email address. array

Methods

customer_data_eraser()

Finds and erases customer data by email address.

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

The user email address.

$page : int

Page.

Tags
since
Return values
array

An array of personal data in name value pairs

order_data_eraser()

Finds and erases data which could be used to identify a person from WooCommerce data assocated with an email address.

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

Orders are erased in blocks of 10 to avoid timeouts.

Parameters
$email_address : string

The user email address.

$page : int

Page.

Tags
since
Return values
array

An array of personal data in name value pairs

download_data_eraser()

Finds and removes customer download logs by email address.

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

The user email address.

$page : int

Page.

Tags
since
Return values
array

An array of personal data in name value pairs

remove_order_personal_data()

Remove personal data specific to WooCommerce from an order object.

public static remove_order_personal_data( $order : WC_Order ) : mixed

Note; this will hinder order processing for obvious reasons!

Parameters
$order : WC_Order

Order object.

Return values
mixed

customer_tokens_eraser()

Finds and erases customer tokens by email address.

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

The user email address.

$page : int

Page.

Tags
since
Return values
array

An array of personal data in name value pairs

Back to the top