WP_REST_Response
Core class used to implement a REST response object.
Core class used to implement a REST response object.
Adds a link to the response.
Adds multiple links to the response.
Retrieves a WP_Error object from the response.
Retrieves the CURIEs (compact URIs) used for relations.
Retrieves links for the response.
Retrieves the handler that was used to generate the response.
Retrieves the route that was used.
Checks if the response is an error, i.e. >= 400 response code.
Sets a single link header.