WC_REST_Network_Orders_V2_Controller::network_orders_filter_args()publicWC 1.0

Filters the post statuses to on hold and processing for the network order query.

Method of the class: WC_REST_Network_Orders_V2_Controller{}

No Hooks.

Return

Array.

Usage

$WC_REST_Network_Orders_V2_Controller = new WC_REST_Network_Orders_V2_Controller();
$WC_REST_Network_Orders_V2_Controller->network_orders_filter_args( $args );
$args(array) (required)
Query args.

WC_REST_Network_Orders_V2_Controller::network_orders_filter_args() code WC 8.9.0

public function network_orders_filter_args( $args ) {
	$args['post_status'] = array(
		'wc-on-hold',
		'wc-processing',
	);

	return $args;
}