Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableDataStore::read
Method to read an order from custom tables.
Method of the class: OrdersTableDataStore{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OrdersTableDataStore = new OrdersTableDataStore(); $OrdersTableDataStore->read( $order );
- $order(WC_Order) (required) (passed by reference — &)
- Order object.
OrdersTableDataStore::read() OrdersTableDataStore::read code WC 10.7.0
public function read( &$order ) {
$orders_array = array( $order->get_id() => $order );
$this->read_multiple( $orders_array );
}