From 8cb2a309e162ef31cd9e482bbaa0f58c5d0dbcab Mon Sep 17 00:00:00 2001 From: Ramon Ahnert Date: Wed, 22 Nov 2023 20:40:43 -0300 Subject: [PATCH] Update routes-and-endpoints.md fix typo in `prefix_data_arg_sanitize_callback` doc --- 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..1c443bc 100644 --- a/extending-the-rest-api/routes-and-endpoints.md +++ b/extending-the-rest-api/routes-and-endpoints.md @@ -516,7 +516,7 @@ function prefix_data_arg_validate_callback( $value, $request, $param ) { * @param mixed $value Value of the 'filter' argument. * @param WP_REST_Request $request The current request object. * @param string $param Key of the parameter. In this case it is 'filter'. - * @return WP_Error|boolean + * @return string */ function prefix_data_arg_sanitize_callback( $value, $request, $param ) { // It is as simple as returning the sanitized value.