Filters extra CURIEs available on API responses.
WP_REST_Response::get_curies
Retrieves the CURIEs (compact URIs) used for relations.
WP_REST_Response::as_error
Retrieves a WP_Error object from the response.
WP_REST_Response::set_matched_handler
Sets the handler that was responsible for generating the response.
Advertisement
WP_REST_Response::is_error
Checks if the response is an error, i.e. >= 400 response code.
WP_REST_Response::get_matched_handler
Retrieves the handler that was used to generate the response.
WP_REST_Response::set_matched_route
Sets the route (regex for path) that caused the response.
WP_REST_Response::get_matched_route
Retrieves the route that was used.
Advertisement
WP_REST_Response::link_header
Sets a single link header.
WP_REST_Response::get_links
Retrieves links for the response.
WP_REST_Response::add_links
Adds multiple links to the response.
WP_REST_Response::remove_link
Removes a link from the response.
Advertisement
WP_REST_Response::add_link
Adds a link to the response.
WP_REST_Response
Core class used to implement a REST response object.