Used By
Used By | Description |
---|---|
wp-includes/rest-api.php: rest_get_server() | Retrieves the current REST server instance. |
Fires when preparing to serve an API request.
Endpoint objects should be created and register their hooks on this action rather than another action to ensure they’re only loaded when needed.
(WP_REST_Server) Server object.
File: wp-includes/rest-api.php
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_api_init