Filters collection parameters for the posts controller.
Description
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<em>Query parameter. Use the rest</em>{$this->post_type}_query filter to set WP_Query parameters.
3173*3174* @since 4.7.03175*3176* @param array$query_paramsJSON Schema-formatted collection parameters.3177* @param WP_Post_Type$post_type Post type object.3178*/3179returnapply_filters("rest_{$this->post_type}_collection_params",$query_params,$post_type);3180}31813182/**3183* Sanitizes and validates the list of post statuses, including whether the3184* user can query private statuses.3185*
History
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.