WordPress at a glance
filter is not described

rest_comment_query filter-hook . WP 4.7.0

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


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

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

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.