File: wp-includes/rest-api.php
-
Validate a value based on a schema.
-
functionrest_sanitize_request_arg()
Sanitize a request argument based on details registered to the route.
-
functionrest_parse_request_arg()
Parse a request argument based on details registered to the route.
-
Returns a contextual HTTP error code for authorization failure.
-
functionrest_validate_request_arg()
Validate a request argument based on details registered to the route.
-
functionregister_rest_field()
Registers a new field on an existing WordPress object type.
-
functioncreate_initial_rest_routes()
Registers default REST API routes.
-
functionrest_get_server()
Retrieves the current REST server instance.
-
functionrest_get_date_with_gmt()
Parses a date into both its local and UTC equivalent, in MySQL datetime format.
-
functionrest_output_link_wp_head()
Outputs the REST API link tag into page header.
-
functionrest_output_link_header()
Sends a Link header for the REST API.
-
functionrest_cookie_check_errors()
Checks for errors when using cookie-based authentication.
-
functionrest_cookie_collect_status()
Collects cookie authentication status.
-
functionrest_parse_date()
Parses an RFC3339 time into a Unix timestamp.
-
functionrest_send_cors_headers()
Sends Cross-Origin Resource Sharing headers with API requests.
-
functionrest_handle_options_request()
Handles OPTIONS requests for the server.
-
functionrest_send_allow_header()
Sends the “Allow” header to state all methods that can be sent to the current route.
-
functionrest_output_rsd()
Adds the REST API URL to the WP RSD endpoint.
-
functionrest_url()
Retrieves the URL to a REST endpoint.
-
functionrest_do_request()
Do a REST request.
-
functionrest_ensure_request()
Ensures request arguments are a request object (for consistency).
-
functionrest_ensure_response()
Ensures a REST response is a response object (for consistency).
-
Handles _deprecated_function() errors.
-
Handles _deprecated_argument() errors.
-
functionget_rest_url()
Retrieves the URL to a REST endpoint on a site.
-
hookrest_url
Filters the REST URL.
-
functionrest_api_init()
Registers rewrite rules for the REST API.
-
functionrest_api_register_rewrites()
Adds REST rewrite rules.
-
functionrest_api_default_filters()
Registers the default REST API filters.
-
functionrest_api_loaded()
Loads the REST API.