AbstractRoute::get_route_error_response_from_object()

Method: Get route response when something went wrong and the supplied error is a WP_Error. This currently only happens when an item in the cart is out of stock, partially out of stock, can only be bought individually, or when the item is not purchasable.

Source: packages/woocommerce-blocks/src/StoreApi/Routes/AbstractRoute.php:188

Used by 1 function | Uses 0 functions