From 7d444827c30a075a8368c87e57e1bb2923f32d3c Mon Sep 17 00:00:00 2001 From: manishamak <124057059+manishamak@users.noreply.github.com> Date: Tue, 31 Jan 2023 19:38:46 +0530 Subject: [PATCH] Update controller-classes.md add/change related comment in code snippet example of get_item function --- extending-the-rest-api/controller-classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extending-the-rest-api/controller-classes.md b/extending-the-rest-api/controller-classes.md index 7b3bbe2..b584313 100644 --- a/extending-the-rest-api/controller-classes.md +++ b/extending-the-rest-api/controller-classes.md @@ -122,7 +122,7 @@ class My_REST_Posts_Controller { } /** - * Grabs the five most recent posts and outputs them as a rest response. + * Gets post data of requested post id and outputs it as a rest response. * * @param WP_REST_Request $request Current request. */