woocommerce_store_api_cart_select_shipping_rate

woocommerce_store_api_cart_select_shipping_rate

Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_store_api_cart_select_shipping_rate') 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 ) );
    	}
    }