Automattic\WooCommerce\Enums
OrderItemType{}
Enum class for all the order item types.
Хуков нет.
Использование
$OrderItemType = new OrderItemType(); // use class methods
Методы
Нет Методов у класса.Список изменений
| С версии 10.8.0 | Введена. |
Код OrderItemType{} OrderItemType{} WC 11.2.2
final class OrderItemType {
/**
* Product line item type.
*
* @var string
*/
public const LINE_ITEM = 'line_item';
/**
* Fee line item type.
*
* @var string
*/
public const FEE = 'fee';
/**
* Shipping line item type.
*
* @var string
*/
public const SHIPPING = 'shipping';
/**
* Tax line item type.
*
* @var string
*/
public const TAX = 'tax';
/**
* Coupon (discount) line item type.
*
* @var string
*/
public const COUPON = 'coupon';
}