Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_order_type()publicWC 1.0

Get order type from DB.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

String. Order type.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_order_type( $order_id );
$order_id(int) (required)
Order ID.

OrdersTableDataStore::get_order_type() code WC 8.6.1

public function get_order_type( $order_id ) {
	$type = $this->get_orders_type( array( $order_id ) );
	return $type[ $order_id ] ?? '';
}