Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::read()publicWC 1.0

Method to read an order from custom tables.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

null. Nothing.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->read( $order );
$order(\WC_Order) (required) (passed by reference — &)
Order object.

OrdersTableDataStore::read() code WC 7.1.0

public function read( &$order ) {
	$orders_array = array( $order->get_id() => $order );
	$this->read_multiple( $orders_array );
}