WP_REST_Response
Methods
1 to 11 of 11
- WP_REST_Response::add_link() – Adds a link to the response.
- WP_REST_Response::add_links() – Adds multiple links to the response.
- WP_REST_Response::as_error() – Retrieves a WP_Error object from the response.
- WP_REST_Response::get_links() – Retrieves links for the response.
- WP_REST_Response::get_matched_handler() – Retrieves the handler that was used to generate the response.
- WP_REST_Response::get_matched_route() – Retrieves the route that was used.
- WP_REST_Response::is_error() – Checks if the response is an error, i.e. >= 400 response code.
- WP_REST_Response::link_header() – Sets a single link header.
- WP_REST_Response::remove_link() – Removes a link from the response.
- WP_REST_Response::set_matched_handler() – Sets the handler that was responsible for generating the response.
- WP_REST_Response::set_matched_route() – Sets the route (regex for path) that caused the response.