woocommerce_store_api_cart_select_shipping_rate
woocommerce_store_api_cart_select_shipping_rate
Hook Type: action
Displaying hooks found in version: woocommerce.7.5.1do_action('woocommerce_store_api_cart_select_shipping_rate') is found 1 times:
- /packages/woocommerce-blocks/src/StoreApi/Routes/V1/CartSelectShippingRate.php line 97
* @param string|null $package_id The sanitized ID of the package being updated. Null if all packages are being updated. * @param string $rate_id The sanitized chosen rate ID for the package. * @param \WP_REST_Request $request Full details about the request. */ do_action( 'woocommerce_store_api_cart_select_shipping_rate', $package_id, $rate_id, $request ); $cart->calculate_shipping(); $cart->calculate_totals(); return rest_ensure_response( $this->cart_schema->get_item_response( $cart ) ); }