WC_Order_Data_Store_CPT::get_orders()publicWC 1.0

Deprecated from version 3.1.0. It is no longer supported and can 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.

Return

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

Changelog

Deprecated since 3.1.0 - Use wc_get_orders instead.

WC_Order_Data_Store_CPT::get_orders() code WC 8.7.0

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 );
}