Filters a comment added via the REST API after it is prepared for insertion into the database.
$prepared_commentarray$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php:1388WP_REST_Comments_Controller::prepare_item_for_database() * * @since 4.7.0 * * @param array $prepared_comment The prepared comment data for `wp_insert_comment`. * @param WP_REST_Request $request The current request. */ return apply_filters( 'rest_preprocess_comment', $prepared_comment, $request ); } /** * Retrieves the comment's schema, conforming to JSON Schema. * * @since 4.7.0Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.