Skip to content

Commit 2e2e934

Browse files
authored
Update controller-classes.md (#146)
add/change related comment in code snippet example of get_item function
1 parent 5a8f195 commit 2e2e934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extending-the-rest-api/controller-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class My_REST_Posts_Controller {
122122
}
123123

124124
/**
125-
* Grabs the five most recent posts and outputs them as a rest response.
125+
* Gets post data of requested post id and outputs it as a rest response.
126126
*
127127
* @param WP_REST_Request $request Current request.
128128
*/

0 commit comments

Comments
 (0)