WordPress at a glance
function is not described

WC_REST_Orders_Controller::get_collection_params() public WC 1.0

Get the query params for collections.

{} It's a method of the class: WC_REST_Orders_Controller{}

No Hooks.

Return

Array.

Usage

$WC_REST_Orders_Controller = new WC_REST_Orders_Controller();
$WC_REST_Orders_Controller->get_collection_params();

Code of WC_REST_Orders_Controller::get_collection_params() WC 5.0.0

<?php
public function get_collection_params() {
	$params = parent::get_collection_params();

	$params['status'] = array(
		'default'           => 'any',
		'description'       => __( 'Limit result set to orders which have specific statuses.', 'woocommerce' ),
		'type'              => 'array',
		'items'             => array(
			'type' => 'string',
			'enum' => array_merge( array( 'any', 'trash' ), $this->get_order_statuses() ),
		),
		'validate_callback' => 'rest_validate_request_arg',
	);

	return $params;
}