From 5337cbc3bf5b8ee57610ae1ff61f56a87d7fd35f Mon Sep 17 00:00:00 2001 From: jgraston Date: Sun, 15 Jun 2025 16:53:39 -0600 Subject: [PATCH] Update routes-and-endpoints.md Replace's copy/pasta (comment from Permissions Callback section) with a relevant comment. --- extending-the-rest-api/routes-and-endpoints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extending-the-rest-api/routes-and-endpoints.md b/extending-the-rest-api/routes-and-endpoints.md index f13ea9a..b2e481b 100644 --- a/extending-the-rest-api/routes-and-endpoints.md +++ b/extending-the-rest-api/routes-and-endpoints.md @@ -369,7 +369,7 @@ function prefix_register_example_routes() { 'methods' => WP_REST_Server::READABLE, // Here we register our callback. The callback is fired when this endpoint is matched by the WP_REST_Server class. 'callback' => 'prefix_get_colors', - // Here we register our permissions callback. The callback is fired before the main callback to check if the current user can access the endpoint. + // Here we specify an arguments method to run in conjunction with the endpoint registration. The method dictates what extra parameters can be attached to the endpoint in order to change the response. 'args' => prefix_get_color_arguments(), ) ); }