WordPress at Your Fingertips
function is not described

WC_Abstract_Privacy::add_eraser() public WC 1.0

Add eraser to list of erasers.

{} It's a method of the class: WC_Abstract_Privacy{}

No Hooks.

Return

Array.

Usage

$WC_Abstract_Privacy = new WC_Abstract_Privacy();
$WC_Abstract_Privacy->add_eraser( $id, $name, $callback );
$id(string) (required)
ID of the Eraser.
$name(string) (required)
Exporter name.
$callback(string|array) (required)
Exporter callback.

Code of WC_Abstract_Privacy::add_eraser() WC 5.5.2

<?php
public function add_eraser( $id, $name, $callback ) {
	$this->erasers[ $id ] = array(
		'eraser_friendly_name' => $name,
		'callback'             => $callback,
	);
	return $this->erasers;
}