single.html
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Blocks
  • Plugins
  • Themes
  • Sitemap
  • Blog
  • Block news
  • About

Home » Classes » WP_REST_Response

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.

Extended by

Class name: WP_REST_Response
Plugin ref: WordPress
Version: 6.1.1
Sourcefile: wp-includes/rest-api/class-wp-rest-response.php
File ref: wp-includes/rest-api/class-wp-rest-response.php
API Letters: R,W

Published:

25th November 2019

Last updated:

9th June 2022

Information

Class name: WP_REST_Response
Plugin ref: WordPress
Version: 6.1.1
Sourcefile: wp-includes/rest-api/class-wp-rest-response.php
File ref: wp-includes/rest-api/class-wp-rest-response.php
API Letters: R,W
WordPress core a2z

WordPress core a2z

WordPress core only

WordPress version:6.1.1
Gutenberg version:
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
(C) Copyright Bobbing Wide 2020-2023. All rights reserved.


Website designed and developed by Herb Miller 
Proudly powered by WordPress and oik plugins

  • Twitter
  • Facebook
  • GitHub
  • WordPress

  • Home
  • Blog
  • Sitemap
  • Sites

Summary file