WordPress at Your Fingertips
function is not described

WC_Install::drop_tables() public WC 1.0

Drop WooCommerce tables.

{} It's a method of the class: WC_Install{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Install::drop_tables();

Code of WC_Install::drop_tables() WC 5.7.1

public static function drop_tables() {
	global $wpdb;

	$tables = self::get_tables();

	foreach ( $tables as $table ) {
		$wpdb->query( "DROP TABLE IF EXISTS {$table}" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
	}
}