Automattic\WooCommerce\Internal\Email\Unsubscribes

Storage::register_personal_data_eraser │ public │ WC 1.0

Filter callback that adds this repository's eraser to WP's GDPR registry.

Method of the class: Storage{}

No Hooks.

Returns

array<string, array{eraser_friendly_name: string, callback: callable}>.

Usage

$Storage = new Storage();
$Storage->register_personal_data_eraser( $erasers ): array;
$erasers(array<string, array{eraser_friendly_name: string, callback: callable}>) (required)
Existing erasers.

Storage::register_personal_data_eraser() code WC 11.1.2

public function register_personal_data_eraser( array $erasers ): array {
	$erasers['wc-email-unsubscribes'] = array(
		'eraser_friendly_name' => __( 'WooCommerce Email Unsubscribes', 'woocommerce' ),
		'callback'             => array( $this, 'handle_personal_data_erasure' ),
	);
	return $erasers;
}