rest_preprocess_comment – filter

Filters a comment added via the REST API after it is prepared for insertion into the database. Allows modification of the comment right after it is prepared for the database.

Parameters

.
( 4.7.0 ) . .
( array ) $prepared_comment The prepared comment data for `wp_insert_comment`. . . .
$request
( WP_REST_Request ) The current request. . . .
API Letters: ,,

Implementers