WordPress at a glance
filter is not described

rest_preprocess_comment filter-hook . WP 4.7.0

Filters a comment after it is prepared for the database.

Allows modification of the comment right after it is prepared for the database.

Usage

add_filter( 'rest_preprocess_comment', 'filter_function_name_8273', 10, 2 );
function filter_function_name_8273( $prepared_comment, $request ){
	// filter...

	return $prepared_comment;
}
$prepared_comment(array)
The prepared comment data for wp_insert_comment.
$request(WP_REST_Request)
The current request.

Where the hook is called

WP_REST_Comments_Controller::prepare_item_for_database()
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 1190
return apply_filters( 'rest_preprocess_comment', $prepared_comment, $request );

Where the hook is used (in WP core)

Does not used.