Automattic\WooCommerce\Enums

TaxBasedOn{}finalWC 10.8.0

Enum class for the possible values of the woocommerce_tax_based_on option, which determines which address is used to calculate tax.

Хуков нет.

Использование

$TaxBasedOn = new TaxBasedOn();
// use class methods

Методы

Нет Методов у класса.

Список изменений

С версии 10.8.0 Введена.

Код TaxBasedOn{} WC 11.0.1

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';
}