Automattic\WooCommerce\Internal\Utilities
DatabaseUtil::drop_fts_index_order_address_table()
Helper method to drop the fulltext index on order address table.
Метод класса: DatabaseUtil{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$DatabaseUtil = new DatabaseUtil(); $DatabaseUtil->drop_fts_index_order_address_table(): void;
Список изменений
С версии 9.4.0 | Введена. |
Код DatabaseUtil::drop_fts_index_order_address_table() DatabaseUtil::drop fts index order address table WC 9.7.1
public function drop_fts_index_order_address_table(): void { global $wpdb; $address_table = $wpdb->prefix . 'wc_order_addresses'; // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $address_table is hardcoded. $wpdb->query( "ALTER TABLE $address_table DROP INDEX order_addresses_fts;" ); }