WC_Install::drop_tables()
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 Install::drop tables WC 6.7.0
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 } }