Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::delete_database_tables()publicWC 1.0

Delete the custom orders database tables.

Method of the class: DataSynchronizer{}

No Hooks.

Return

null. Nothing.

Usage

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->delete_database_tables();

DataSynchronizer::delete_database_tables() code WC 7.1.0

public function delete_database_tables() {
	$table_names = $this->data_store->get_all_table_names();

	foreach ( $table_names as $table_name ) {
		$this->database_util->drop_database_table( $table_name );
	}
}