Automattic\WooCommerce\Enums
OrderItemType{}
Enum class for all the order item types.
No Hooks.
Usage
$OrderItemType = new OrderItemType(); // use class methods
Methods
No Methods in class.Changelog
| Since 10.8.0 | Introduced. |
OrderItemType{} OrderItemType{} code WC 10.9.1
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';
}