WC_REST_Orders_Controller::get_collection_params()
Get the query params for collections.
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();
WC_REST_Orders_Controller::get_collection_params() WC REST Orders Controller::get collection params code WC 9.5.1
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; }