File: wp-includes/rest-api/class-wp-rest-response.php
-
Filters extra CURIEs available on REST API responses.
-
Retrieves the CURIEs (compact URIs) used for relations.
-
Retrieves a WP_Error object from the response.
Used by 0 functions | Uses 2 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:225 -
Retrieves the route that was used.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:170 -
Sets the route (regex for path) that caused the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:181 -
Retrieves the handler that was used to generate the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:192 -
Sets the handler that was responsible for generating the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:203 -
Checks if the response is an error, i.e. >= 400 response code.
-
classWP_REST_Response
Core class used to implement a REST response object.
-
Adds a link to the response.
-
Removes a link from the response.
-
Adds multiple links to the response.
-
Retrieves links for the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:131 -
Sets a single link header.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:150