Automattic\WooCommerce\Enums

ProductType{}WC 1.0

Enum class for all the product types.

No Hooks.

Usage

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

Methods

No Methods in class.

ProductType{} code WC 9.7.1

final class ProductType {
	/**
	 * Simple product type.
	 *
	 * @var string
	 */
	const SIMPLE = 'simple';

	/**
	 * Variable product type.
	 *
	 * @var string
	 */
	const VARIABLE = 'variable';

	/**
	 * Grouped product type.
	 *
	 * @var string
	 */
	const GROUPED = 'grouped';

	/**
	 * External/Affiliate product type.
	 *
	 * @var string
	 */
	const EXTERNAL = 'external';

	/**
	 * Variation product type.
	 *
	 * @var string
	 */
	const VARIATION = 'variation';
}