WordPress at Your Fingertips
function is not described

WC_Abstract_Privacy::add_exporter() public WC 1.0

Add exporter to list of exporters.

{} 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_exporter( $id, $name, $callback );
$id(string) (required)
ID of the Exporter.
$name(string) (required)
Exporter name.
$callback(string|array) (required)
Exporter callback.

Code of WC_Abstract_Privacy::add_exporter() WC 5.5.2

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