WordPress at a glance
filter is not described

rest_(post_type)_collection_params filter-hook . WC 1.0

Filter collection parameters for the posts controller.

The dynamic part of the filter $this->post_type refers to the post type slug for the controller.

This filter registers the collection parameter, but does not map the collection parameter to an internal WP_Query parameter. Use the rest_{$this->post_type}_query filter to set WP_Query parameters.

Usage

add_filter( 'rest_(post_type)_collection_params', 'filter_function_name_3829', 10, 2 );
function filter_function_name_3829( $query_params, $post_type ){
	// filter...

	return $query_params;
}
$query_params(array)
JSON Schema-formatted collection parameters.
$post_type(WP_Post_Type)
Post type object.

Where the hook is called

WC_REST_CRUD_Controller::get_collection_params()
rest_(post_type)_collection_params
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php 645
return apply_filters( "rest_{$this->post_type}_collection_params", $params, $this->post_type );

Where in WP core the hook is used WooCommerce

Usage not found.