Automattic\WooCommerce\Internal\Utilities
DatabaseUtil::create_fts_index_order_item_table()
Create a fulltext index on order item table.
Метод класса: DatabaseUtil{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$DatabaseUtil = new DatabaseUtil(); $DatabaseUtil->create_fts_index_order_item_table(): void;
Код DatabaseUtil::create_fts_index_order_item_table() DatabaseUtil::create fts index order item table WC 9.3.3
public function create_fts_index_order_item_table(): void { global $wpdb; $order_item_table = $wpdb->prefix . 'woocommerce_order_items'; // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $order_item_table is hardcoded. $wpdb->query( "CREATE FULLTEXT INDEX order_item_fts ON $order_item_table (order_item_name)" ); }