WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

CartExtensionsSchema::get_item_response() public WC 1.0

Handle the request and return a valid response for this endpoint.

{} It's a method of the class: CartExtensionsSchema{}

No Hooks.

Return

Array.

Usage

$CartExtensionsSchema = new CartExtensionsSchema();
$CartExtensionsSchema->get_item_response( $request );
$request(\WP_REST_Request)
Request containing data for the extension callback.
Default: null

Code of CartExtensionsSchema::get_item_response() WC 5.6.0

public function get_item_response( $request = null ) {
	try {
		$callback = $this->extend->get_update_callback( $request['namespace'] );
	} catch ( RouteException $e ) {
		throw $e;
	}
	if ( is_callable( $callback ) ) {
		$callback( $request['data'] );
	}
	return rest_ensure_response( wc()->api->get_endpoint_data( '/wc/store/cart' ) );
}