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

Add exporter to list of exporters.


Description Description


Parameters Parameters

$id

(Required) ID of the Exporter.

$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_exporter( $id, $name, $callback ) {
		$this->exporters[ $id ] = array(
			'exporter_friendly_name' => $name,
			'callback'               => $callback,
		);
		return $this->exporters;
	}

Top ↑

User Contributed Notes User Contributed Notes

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