WC_Order_Data_Store_CPT::get_orders
Deprecated since 3.1.0. It is no longer supported and may be removed in future releases. Use wc_get_orders instead.
Get all orders matching the passed in args.
Method of the class: WC_Order_Data_Store_CPT{}
No Hooks.
Returns
Array|Object.
Usage
$WC_Order_Data_Store_CPT = new WC_Order_Data_Store_CPT(); $WC_Order_Data_Store_CPT->get_orders( $args );
- $args(array)
- List of args passed to wc_get_orders().
Default: array()
Notes
- See: wc_get_orders()
Changelog
| Deprecated since 3.1.0 | - Use wc_get_orders instead. |
WC_Order_Data_Store_CPT::get_orders() WC Order Data Store CPT::get orders code WC 10.3.3
public function get_orders( $args = array() ) {
wc_deprecated_function( 'WC_Order_Data_Store_CPT::get_orders', '3.1.0', 'Use wc_get_orders instead.' );
return wc_get_orders( $args );
}