Sets the route (regex for path) that caused the response.
WP_REST_Response::get_matched_route
Retrieves the route that was used.
WP_REST_Response::link_header
Sets a single link header.
WP_REST_Response::get_links
Retrieves links for the response.
Advertisement
WP_REST_Response::add_links
Adds multiple links to the response.
WP_REST_Response::remove_link
Removes a link from the response.
WP_REST_Response::add_link
Adds a link to the response.
WP_REST_Request::from_url
Retrieves a WP_REST_Request object from a full URL.
Advertisement
WP_REST_Request::offsetUnset
Removes a parameter from the request.
WP_REST_Request::offsetSet
Sets a parameter on the request.
WP_REST_Request::offsetGet
Retrieves a parameter from the request.
WP_REST_Request::offsetExists
Checks if a parameter is set.
Advertisement
WP_REST_Request::has_valid_params
Checks whether this request is valid according to its attributes.
WP_REST_Request::sanitize_params
Sanitizes (where possible) the params on the request.
WP_REST_Request::set_attributes
Sets the attributes for the request.