You appear to be a bot. Output may be restricted
Description
Drops all tables from the WordPress database
Usage
drop_tables();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/includes/utils.php
Lines:
1 to 8 of 8
function drop_tables() { global $wpdb; $tables = $wpdb->get_col( 'SHOW TABLES;' ); foreach ( $tables as $table ) { // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( "DROP TABLE IF EXISTS {$table}" ); } }