wp-includes/rest-api.php


Lines:

1 to 100 of 185
<?php

/**
 * REST API functions.
 *
 * @package WordPress
 * @subpackage REST_API
 * @since 4.4.0
 */


/**
 * Version number for our API.
 *
 * @var string
 */
define( 'REST_API_VERSION', '2.0' );

/* function register_rest_route() – Registers a REST API route. */

/* function register_rest_field() – Registers a new field on an existing WordPress object type. */

/* function rest_api_init() – Registers rewrite rules for the API. */

/* function rest_api_register_rewrites() – Adds REST rewrite rules. */

/* function rest_api_default_filters() – Registers the default REST API filters. */

/* function create_initial_rest_routes() – Registers default REST API routes. */

/* function rest_api_loaded() – Loads the REST API. */

/* function rest_get_url_prefix() – Retrieves the URL prefix for any API resource. */

/* function get_rest_url() – Retrieves the URL to a REST endpoint on a site. */

/* function rest_url() – Retrieves the URL to a REST endpoint. */

/* function rest_do_request() – Do a REST request. */

/* function rest_get_server() – Retrieves the current REST server instance. */

/* function rest_ensure_request() – Ensures request arguments are a request object (for consistency). */

/* function rest_ensure_response() – Ensures a REST response is a response object (for consistency). */

/* function rest_handle_deprecated_function() – Handles _deprecated_function() errors. */

/* function rest_handle_deprecated_argument() – Handles _deprecated_argument() errors. */

/* function rest_handle_doing_it_wrong() – Handles _doing_it_wrong errors. */

/* function rest_send_cors_headers() – Sends Cross-Origin Resource Sharing headers with API requests. */

/* function rest_handle_options_request() – Handles OPTIONS requests for the server. */

/* function rest_send_allow_header() – Sends the "Allow" header to state all methods that can be sent to the current route. */

/* function _rest_array_intersect_key_recursive() – Recursively computes the intersection of arrays using keys for comparison. */

/* function rest_filter_response_fields() – Filter the API response to include only a white-listed set of response object fields. */

/* function rest_is_field_included() – Given an array of fields to include in a response, some of which may be
`nested.fields`, determine whether the provided field should be included
in the response body. */

/* function rest_output_rsd() – Adds the REST API URL to the WP RSD endpoint. */

/* function rest_output_link_wp_head() – Outputs the REST API link tag into page header. */

/* function rest_output_link_header() – Sends a Link header for the REST API. */

/* function rest_cookie_check_errors() – Checks for errors when using cookie-based authentication. */

/* function rest_cookie_collect_status() – Collects cookie authentication status. */

/* function rest_application_password_collect_status() – Collects the status of authenticating with an application password. */

/* function rest_get_authenticated_app_password() – Gets the Application Password used for authenticating the request. */

/* function rest_application_password_check_errors() – Checks for errors when using application password-based authentication. */

/* function rest_add_application_passwords_to_index() – Adds Application Passwords info to the REST API index. */

/* function rest_get_avatar_urls() – Retrieves the avatar urls in various sizes. */

/* function rest_get_avatar_sizes() – Retrieves the pixel sizes for avatars. */

/* function rest_parse_date() – Parses an RFC3339 time into a Unix timestamp. */

/* function rest_parse_hex_color() – Parses a 3 or 6 digit hex color (with #). */

/* function rest_get_date_with_gmt() – Parses a date into both its local and UTC equivalent, in MySQL datetime format. */

/* function rest_authorization_required_code() – Returns a contextual HTTP error code for authorization failure. */

/* function rest_validate_request_arg() – Validate a request argument based on details registered to the route. */

/* function rest_sanitize_request_arg() – Sanitize a request argument based on details registered to the route. */

/* function rest_parse_request_arg() – Parse a request argument based on details registered to the route. */

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,,