Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_all_table_names_with_id()public staticWC 1.0

Similar to get_all_table_names, but also returns the table name along with the items table.

Метод класса: OrdersTableDataStore{}

Хуков нет.

Возвращает

Массив. Names of the tables.

Использование

$result = OrdersTableDataStore::get_all_table_names_with_id();

Код OrdersTableDataStore::get_all_table_names_with_id() WC 9.3.3

public static function get_all_table_names_with_id() {
	global $wpdb;
	return array(
		'orders'           => self::get_orders_table_name(),
		'addresses'        => self::get_addresses_table_name(),
		'operational_data' => self::get_operational_data_table_name(),
		'meta'             => self::get_meta_table_name(),
		'items'            => $wpdb->prefix . 'woocommerce_order_items',
	);
}