Used By
Used By | Description |
---|---|
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::serve_request() | Handles serving an API request. |
This hook has been deprecated. Use the ‘rest_authentication_errors’ filter to restrict access to the API instead.
Filters whether the REST API is enabled.
(bool) Whether the REST API is enabled. Default true.
Version | Description |
---|---|
4.7.0 | Use the 'rest_authentication_errors' filter to restrict access to the API. |
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_enabled