edd_calculate_tax( $amount, $country = false, $state = false )
Calculate the taxed amount
Description Description
Parameters Parameters
- $amount
-
(Required) float The original amount to calculate a tax cost
- $country
-
(Optional) string The country to calculate tax for. Will use default if not passed
Default value: false
- $state
-
(Optional) string The state to calculate tax for. Will use default if not passed
Default value: false
Return Return
(float) $tax Taxed amount
Source Source
File: includes/tax-functions.php
Changelog Changelog
Version | Description |
---|---|
1.3.3 | Introduced. |