apply_filters( 'rest_comment_query', array $prepared_args , WP_REST_Request $request )
Filters arguments, before passing to WP_Comment_Query, when querying comments via the REST API.
Description Description
Parameters Parameters
- $prepared_args
-
(array) Array of arguments for WP_Comment_Query.
- $request
-
(WP_REST_Request) The current request.
Source Source
File: wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |