Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/rest-api.php / Page 3

rest_parse_request_arg()

Function: Parse a request argument based on details registered to the route.

Source: wp-includes/rest-api.php:1392

Used by 2 functions | Uses 3 functions

rest_authorization_required_code()

Function: Returns a contextual HTTP error code for authorization failure.

Source: wp-includes/rest-api.php:1335

Used by 78 functions | Uses 1 function

rest_validate_request_arg()

Function: Validate a request argument based on details registered to the route.

Source: wp-includes/rest-api.php:1349

Used by 5 functions | Uses 1 function

register_rest_field()

Function: Registers a new field on an existing WordPress object type.

Source: wp-includes/rest-api.php:153

Used by 1 function | Uses 1 function

create_initial_rest_routes()

Function: Registers default REST API routes.

Source: wp-includes/rest-api.php:236

Used by 0 functions | Uses 34 functions

rest_get_server()

Function: Retrieves the current REST server instance.

Source: wp-includes/rest-api.php:549

Used by 6 functions | Uses 2 functions

rest_get_date_with_gmt()

Function: Parses a date into both its local and UTC equivalent, in MySQL datetime format.

Source: wp-includes/rest-api.php:1298

Used by 2 functions | Uses 3 functions

rest_output_link_wp_head()

Function: Outputs the REST API link tag into page header.

Source: wp-includes/rest-api.php:980

Used by 0 functions | Uses 4 functions

rest_output_link_header()

Function: Sends a Link header for the REST API.

Source: wp-includes/rest-api.php:1001

Used by 0 functions | Uses 4 functions

rest_cookie_check_errors()

Function: Checks for errors when using cookie-based authentication.

Source: wp-includes/rest-api.php:1036

Used by 0 functions | Uses 7 functions

rest_cookie_collect_status()

Function: Collects cookie authentication status.

Source: wp-includes/rest-api.php:1090

Used by 0 functions | Uses 1 function

rest_parse_date()

Function: Parses an RFC3339 time into a Unix timestamp.

Source: wp-includes/rest-api.php:1255

Used by 2 functions | Uses 0 functions

rest_send_cors_headers()

Function: Sends Cross-Origin Resource Sharing headers with API requests.

Source: wp-includes/rest-api.php:723

Used by 0 functions | Uses 3 functions

rest_handle_options_request()

Function: Handles OPTIONS requests for the server.

Source: wp-includes/rest-api.php:755

Used by 0 functions | Uses 0 functions

rest_send_allow_header()

Function: Sends the “Allow” header to state all methods that can be sent to the current route.

Source: wp-includes/rest-api.php:804

Used by 0 functions | Uses 0 functions

rest_output_rsd()

Function: Adds the REST API URL to the WP RSD endpoint.

Source: wp-includes/rest-api.php:962

Used by 0 functions | Uses 2 functions

rest_url()

Function: Retrieves the URL to a REST endpoint.

Source: wp-includes/rest-api.php:519

Used by 54 functions | Uses 1 function

rest_do_request()

Function: Do a REST request.

Source: wp-includes/rest-api.php:533

Used by 4 functions | Uses 2 functions

rest_ensure_request()

Function: Ensures request arguments are a request object (for consistency).

Source: wp-includes/rest-api.php:592

Used by 1 function | Uses 1 function

rest_ensure_response()

Function: Ensures a REST response is a response object (for consistency).

Source: wp-includes/rest-api.php:618

Used by 85 functions | Uses 1 function

rest_handle_deprecated_function()

Function: Handles _deprecated_function() errors.

Source: wp-includes/rest-api.php:649

Used by 0 functions | Uses 1 function

rest_handle_deprecated_argument()

Function: Handles _deprecated_argument() errors.

Source: wp-includes/rest-api.php:673

Used by 0 functions | Uses 1 function

get_rest_url()

Function: Retrieves the URL to a REST endpoint on a site.

Source: wp-includes/rest-api.php:449

Used by 8 functions | Uses 13 functions

rest_url

Filter Hook: Filters the REST URL.

Source: wp-includes/rest-api.php:505

Used by 1 function | Uses 0 functions

rest_api_init()

Function: Registers rewrite rules for the REST API.

Source: wp-includes/rest-api.php:179

Used by 0 functions | Uses 2 functions

rest_api_register_rewrites()

Function: Adds REST rewrite rules.

Source: wp-includes/rest-api.php:194

Used by 1 function | Uses 2 functions

rest_api_default_filters()

Function: Registers the default REST API filters.

Source: wp-includes/rest-api.php:211

Used by 0 functions | Uses 2 functions

rest_api_loaded()

Function: Loads the REST API.

Source: wp-includes/rest-api.php:389

Used by 0 functions | Uses 2 functions

wp_rest_server_class

Filter Hook: Filters the REST Server Class.

Source: wp-includes/rest-api.php:564

Used by 1 function | Uses 0 functions

rest_api_init

Action Hook: Fires when preparing to serve a REST API request.

Source: wp-includes/rest-api.php:577

Used by 1 function | Uses 0 functions
Previous 1 2 3 4 Next
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry