• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / AbstractCartRoute::get_response() – Get the route response based on the type of request.

You appear to be a bot. Output may be restricted

Description

Get the route response based on the type of request.

Usage

$\WP_Error|\WP_REST_Response = AbstractCartRoute::get_response( $request );

Parameters

$request
( \WP_REST_Request ) required – Request object.

Returns

\WP_Error|\WP_REST_Response

Source

File name: woocommerce/packages/woocommerce-blocks/src/StoreApi/Routes/AbstractCartRoute.php


Lines:

1 to 6 of 6
  public function get_response( \WP_REST_Request $request ) {
    $this->maybe_load_cart();
    $this->calculate_totals();
    return parent::get_response( $request );
  }
 

 View on GitHub View on Trac

Published: 21st August 2020 | Last updated: 13th March 2021

Primary Sidebar

Information

Function name: AbstractCartRoute::get_response
Class ref: AbstractCartRoute
Plugin ref: WooCommerce
Version: 5.1.0
Sourcefile: packages/woocommerce-blocks/src/StoreApi/Routes/AbstractCartRoute.php
File ref: packages/woocommerce-blocks/src/StoreApi/Routes/AbstractCartRoute.php
Deprecated?: No
API Letters: A,G,R

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.7.1
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:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites