WC_Abstract_Privacy::add_eraser( string $id, string $name, string|array $callback )

Add eraser to list of erasers.


Description Description


Parameters Parameters

$id

(Required) ID of the Eraser.

$name

(Required) Exporter name.

$callback

(Required) Exporter callback.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/abstract-wc-privacy.php

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.