WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_prepare_comment

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php apply_filters 1139 /**
* Filters a comment returned from the REST API.
*
* Allows modification of the comment right before it is returned.
*
* @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.
*/

Hook Parameters

Parameter Type Name Description
WP_REST_Response $response The response object.
WP_Comment $comment The original comment object.
WP_REST_Request $request Request used to generate the response.