Automattic\WooCommerce\Enums

ProductStockStatus{}finalWC 1.0

Enum class for all the product stock statuses.

No Hooks.

Usage

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

Methods

No Methods in class.

ProductStockStatus{} code WC 9.9.4

final class ProductStockStatus {
	/**
	 * The product is in stock.
	 *
	 * @var string
	 */
	const IN_STOCK = 'instock';

	/**
	 * The product is out of stock.
	 *
	 * @var string
	 */
	const OUT_OF_STOCK = 'outofstock';

	/**
	 * The product is on backorder.
	 *
	 * @var string
	 */
	const ON_BACKORDER = 'onbackorder';

	/**
	 * The product is low in stock.
	 *
	 * @var string
	 */
	const LOW_STOCK = 'lowstock';
}