Used By
Used By | Description |
---|---|
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::serve_request() | Handles serving an API request. |
Filters whether the request has already been served.
Allow sending the request manually – by returning true, the API result will not be sent to the client.
(bool) Whether the request has already been served. Default false.
(WP_HTTP_Response) Result to send to the client. Usually a WP_REST_Response.
(WP_REST_Request) Request used to generate the response.
(WP_REST_Server) Server instance.
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_pre_serve_request