Automattic\WooCommerce\Internal\CLI\Migrator\Core

MigratorTracker::clear_datapublicWC 1.0

Clear all stored analytics data. Useful for development/testing or user privacy requests.

Method of the class: MigratorTracker{}

No Hooks.

Returns

null. Nothing (null).

Usage

$MigratorTracker = new MigratorTracker();
$MigratorTracker->clear_data(): void;

MigratorTracker::clear_data() code WC 10.7.0

public function clear_data(): void {
	delete_option( self::OPTION_NAME );
	$this->current_session = array();
}