Updated wc_get_orders and WC_Order_Query (markdown)

Allen Smith 2020-12-07 14:36:57 -05:00
parent 5b366de310
commit 0d304d2d2a
1 changed files with 2 additions and 2 deletions

@ -65,10 +65,10 @@ $orders = $query->get_orders();
**status** **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( $args = array(
'status' => array('wc-processing', 'wc-on-hold'), 'status' => array('wc-processing', 'wc-on-hold'),
); );