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

Developer Resources

Browse: Home / Reference / wp-includes/rest-api/class-wp-rest-response.php

rest_response_link_curies

Filter Hook: Filters extra CURIEs available on REST API responses.

Source: wp-includes/rest-api/class-wp-rest-response.php:289

Used by 1 function | Uses 0 functions

WP_REST_Response::get_curies()

Method: Retrieves the CURIEs (compact URIs) used for relations.

Source: wp-includes/rest-api/class-wp-rest-response.php:255

Used by 0 functions | Uses 1 function

WP_REST_Response::as_error()

Method: Retrieves a WP_Error object from the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:225

Used by 0 functions | Uses 2 functions

WP_REST_Response::get_matched_route()

Method: Retrieves the route that was used.

Source: wp-includes/rest-api/class-wp-rest-response.php:170

Used by 0 functions | Uses 0 functions

WP_REST_Response::set_matched_route()

Method: Sets the route (regex for path) that caused the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:181

Used by 0 functions | Uses 0 functions

WP_REST_Response::get_matched_handler()

Method: Retrieves the handler that was used to generate the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:192

Used by 0 functions | Uses 0 functions

WP_REST_Response::set_matched_handler()

Method: Sets the handler that was responsible for generating the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:203

Used by 0 functions | Uses 0 functions

WP_REST_Response::is_error()

Method: Checks if the response is an error, i.e. >= 400 response code.

Source: wp-includes/rest-api/class-wp-rest-response.php:214

Used by 1 function | Uses 0 functions

WP_REST_Response

Class: Core class used to implement a REST response object.

Source: wp-includes/rest-api/class-wp-rest-response.php:17

Used by 0 functions | Uses 1 function

WP_REST_Response::add_link()

Method: Adds a link to the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:58

Used by 1 function | Uses 0 functions

WP_REST_Response::remove_link()

Method: Removes a link from the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:83

Used by 0 functions | Uses 1 function

WP_REST_Response::add_links()

Method: Adds multiple links to the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:111

Used by 0 functions | Uses 1 function

WP_REST_Response::get_links()

Method: Retrieves links for the response.

Source: wp-includes/rest-api/class-wp-rest-response.php:131

Used by 0 functions | Uses 0 functions

WP_REST_Response::link_header()

Method: Sets a single link header.

Source: wp-includes/rest-api/class-wp-rest-response.php:150

Used by 0 functions | Uses 0 functions
  • 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
  • Visit our YouTube channel
Code is Poetry