delete_tables()

Summary

No summary available.

Source

File: uninstall.php

function delete_tables() {
	/** @var \wpdb $wpdb */
	global $wpdb;
	$tables = [
		Schema\Products_Table::NAME,
		Schema\Variants_Table::NAME,
		Schema\Reviews_Table::NAME,
		Schema\Import_Queue_Table::NAME,
	];

	foreach ( $tables as $table ) {
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}{$table}" );
	}
}


User Contributed Notes

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