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.
1804*`rest_comment_query` filter to set WP_Comment_Query parameters.1805*1806* @since 4.7.01807*1808* @param array$query_paramsJSON Schema-formatted collection parameters.1809*/1810returnapply_filters('rest_comment_collection_params',$query_params);1811}18121813/**1814* Sets the comment_status of a given comment object when creating or updating a comment.1815*1816* @since 4.7.0
History
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.