Created
March 21, 2017 14:07
-
-
Save ucheng/4fb904de01156c33ca95627e540fbae6 to your computer and use it in GitHub Desktop.
get woo orders with custom status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$orders = get_posts( array( | |
'post_type' => 'shop_order', | |
'post_status' => array('wc-packing') | |
)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment