Updated wc_get_orders and WC_Order_Query (markdown)
parent
5b366de310
commit
0d304d2d2a
|
@ -65,10 +65,10 @@ $orders = $query->get_orders();
|
|||
|
||||
**status**
|
||||
|
||||
Accepts an array of strings: by default is set to the keys from of `wc_get_order_statuses()`.
|
||||
Accepts an array of strings: by default is set to the keys of `wc_get_order_statuses()`.
|
||||
|
||||
```
|
||||
// Get orders on hold.
|
||||
// Get orders processing and on-hold.
|
||||
$args = array(
|
||||
'status' => array('wc-processing', 'wc-on-hold'),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue