WordPress at Your Fingertips
filter is not described

rest_comment_query filter-hook . WP 4.7.0

Filters WP_Comment_Query arguments when querying comments via the REST API.


add_filter( 'rest_comment_query', 'filter_function_name_1819', 10, 2 );
function filter_function_name_1819( $prepared_args, $request ){
	// filter...

	return $prepared_args;
Array of arguments for WP_Comment_Query.
The REST API request.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 273
$prepared_args = apply_filters( 'rest_comment_query', $prepared_args, $request );

Where in WP core the hook is used WordPress

Usage not found.