• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
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 2 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::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

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
  • Support
  • 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
Code is Poetry