apply_filters( 'rest_comment_collection_params', array $query_params )
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.
Parameters
- $query_params
-
(array) JSON Schema-formatted collection parameters.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_comment_collection_params