Automattic\WooCommerce\Enums
TaxBasedOn{}
Enum class for the possible values of the woocommerce_tax_based_on option, which determines which address is used to calculate tax.
No Hooks.
Usage
$TaxBasedOn = new TaxBasedOn(); // use class methods
Methods
No Methods in class.Changelog
| Since 10.8.0 | Introduced. |
TaxBasedOn{} TaxBasedOn{} code WC 10.9.4
final class TaxBasedOn {
/**
* Tax is calculated based on the customer's shipping address.
*
* @var string
*/
public const SHIPPING = 'shipping';
/**
* Tax is calculated based on the customer's billing address.
*
* @var string
*/
public const BILLING = 'billing';
/**
* Tax is calculated based on the shop's base address.
*
* @var string
*/
public const BASE = 'base';
}