EDD_Cart::get_item_tax( array $download_id, array $options = array(), float $subtotal = '' )
Calculate the tax for an item in the cart.
Description Description
Parameters Parameters
- $download_id
-
(Required) Download ID
- $options
-
(Optional) Cart item options
Default value: array()
- $subtotal
-
(Optional) Cart item subtotal
Default value: ''
Return Return
(float) Tax amount
Source Source
File: includes/cart/class-edd-cart.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |