WordPress at a glance
filter is not described

rest_comment_collection_params filter-hook . WP 4.7.0

Filters REST API collection parameters for the comments controller.

This filter registers the collection parameter, but does not map the collection parameter to an internal WP_Comment_Query parameter. Use the rest_comment_query filter to set WP_Comment_Query parameters.


add_filter( 'rest_comment_collection_params', 'filter_function_name_8505' );
function filter_function_name_8505( $query_params ){
	// filter...

	return $query_params;
JSON Schema-formatted collection parameters.


Since 4.7.0 Introduced.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 1687
return apply_filters( 'rest_comment_collection_params', $query_params );

Where in WP core the hook is used WordPress

Usage not found.