过滤注释控制器的集合参数。
原型
apply_filters( 'rest_comment_collection_params', array $query_params )
描述
此过滤器注册集合参数,但不将集合参数映射到内部WP_Comment_Query参数。使用rest_comment_query过滤器设置WP_Comment_Query参数。
参数
$query_params
(array)
JSON Schema格式的集合参数。
源文件
路径:wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/rest_comment_collection_params/