Automattic\WooCommerce\Internal\ShopperLists\Privacy
Privacy::register_exporters_and_erasers
Register the shopper-list exporter and eraser with WordPress.
Method of the class: Privacy{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Privacy = new Privacy(); $Privacy->register_exporters_and_erasers(): void;
Privacy::register_exporters_and_erasers() Privacy::register exporters and erasers code WC 11.0.1
public function register_exporters_and_erasers(): void {
$label = __( 'WooCommerce Shopper Lists', 'woocommerce' );
$this->add_exporter( self::REGISTRATION_ID, $label, array( $this, 'export_data' ) );
$this->add_eraser( self::REGISTRATION_ID, $label, array( $this, 'erase_data' ) );
}