Methods
1 to 30 of 30
- WP_REST_Server::__construct() – Instantiates the REST server.
- WP_REST_Server::check_authentication() – Checks the authentication headers if supplied.
- WP_REST_Server::dispatch() – Matches the request to a callback and call it.
- WP_REST_Server::embed_links() – Embeds the links from the data into the request.
- WP_REST_Server::envelope_response() – Wraps the response in an envelope.
- WP_REST_Server::error_to_response() – Converts an error to a response object.
- WP_REST_Server::get_compact_response_links() – Retrieves the CURIEs (compact URIs) used for relations.
- WP_REST_Server::get_data_for_route() – Retrieves publicly-visible data for the route.
- WP_REST_Server::get_data_for_routes() – Retrieves the publicly-visible data for routes.
- WP_REST_Server::get_headers() – Extracts headers from a PHP-style $_SERVER array.
- WP_REST_Server::get_index() – Retrieves the site index.
- WP_REST_Server::get_json_last_error() – Returns if an error occurred during most recent JSON encode/decode.
- WP_REST_Server::get_max_batch_size() – Gets the maximum number of requests that can be included in a batch.
- WP_REST_Server::get_namespace_index() – Retrieves the index for a namespace.
- WP_REST_Server::get_namespaces() – Retrieves namespaces registered on the server.
- WP_REST_Server::get_raw_data() – Retrieves the raw request entity (body).
- WP_REST_Server::get_response_links() – Retrieves links from a response.
- WP_REST_Server::get_route_options() – Retrieves specified options for a route.
- WP_REST_Server::get_routes() – Retrieves the route map.
- WP_REST_Server::json_error() – Retrieves an appropriate error representation in JSON.
- WP_REST_Server::match_request_to_handler() – Matches a request object to it’s handler.
- WP_REST_Server::register_route() – Registers a route to the server.
- WP_REST_Server::remove_header() – Removes an HTTP header from the current response.
- WP_REST_Server::respond_to_request() – Dispatches the request to the callback handler.
- WP_REST_Server::response_to_data() – Converts a response to data to send.
- WP_REST_Server::send_header() – Sends an HTTP header.
- WP_REST_Server::send_headers() – Sends multiple HTTP headers.
- WP_REST_Server::serve_batch_request_v1() – Serves the batch/v1 request.
- WP_REST_Server::serve_request() – Handles serving a REST API request.
- WP_REST_Server::set_status() – Sends an HTTP status code.