rest_prepare_comment

rest_prepare_comment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('rest_prepare_comment') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php line 1141
    		 * @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.0