woocommerce_store_api_cart_select_shipping_rate, $package_id, $rate_id, $request
woocommerce_store_api_cart_select_shipping_rate, $package_id, $rate_id, $request
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_store_api_cart_select_shipping_rate, $package_id, $rate_id, $request') is found 1 times:
- /src/StoreApi/Routes/V1/CartSelectShippingRate.php line 108
* @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_totals(); return rest_ensure_response( $this->cart_schema->get_item_response( $cart ) ); } }