A WordPress-centric search engine for devs and theme authors



rest_comment_query ›

Since4.7.0
Deprecatedn/a
apply_filters( 'rest_comment_query', $prepared_args, $request )
Parameters: (2)
  • (array) $prepared_args Array of arguments for WP_Comment_Query.
    Required: Yes
  • (WP_REST_Request) $request The current request.
    Required: Yes
Defined at:
Codex:

Filters arguments, before passing to WP_Comment_Query, when querying comments via the REST API.





Source

$prepared_args = apply_filters( 'rest_comment_query', $prepared_args, $request );