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.
WP_REST_Request::offsetUnset
Removes a parameter from the request.
WP_REST_Request::offsetSet
Sets a parameter on the request.
Advertisement
WP_REST_Request::offsetGet
Retrieves a parameter from the request.
WP_REST_Request::offsetExists
Checks if a parameter is set.
WP_REST_Request::has_valid_params
Checks whether this request is valid according to its attributes.