Filters a comment returned from the REST API.
$responseWP_REST_Response$commentWP_Comment$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php:1137WP_REST_Comments_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php:1237WP_REST_Comments_Controller::prepare_item_for_response() * @since 4.7.0 * * @param WP_REST_Response $response The response object. * @param WP_Comment $comment The original comment object. * @param WP_REST_Request $request Request used to generate the response. */ return apply_filters( 'rest_prepare_comment', $response, $comment, $request ); } /** * Prepares links for the request. * * @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.