apply_filters( ‘rest_comment_query’, array $prepared_args, WP_REST_Request $request )

In this article

Filters WP_Comment_Query arguments when querying comments via the REST API.

Parameters

$prepared_argsarray
Array of arguments for WP_Comment_Query.
$requestWP_REST_Request
The REST API request.

Source

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

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.