Filters REST API collection parameters for the comments controller.
Description
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.
1706*`rest_comment_query` filter to set WP_Comment_Query parameters.1707*1708* @since 4.7.01709*1710* @param array$query_paramsJSON Schema-formatted collection parameters.1711*/1712returnapply_filters('rest_comment_collection_params',$query_params);1713}17141715/**1716* Sets the comment_status of a given comment object when creating or updating a comment.1717*1718* @since 4.7.0
History
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.