你可以阻止Schema Change 随着Direct Query和No Caching 这两种方式的警告-
global $wpdb;
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}rest_of_the_name" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.SchemaChange
或
global $wpdb;
// @codingStandardsIgnoreStart
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}rest_of_the_name" );
// @codingStandardsIgnoreEnd