Automattic\WooCommerce\Enums
StockDisplayFormat{}
Enum class for the possible values of the 'woocommerce_stock_format' option.
Хуков нет.
Использование
$StockDisplayFormat = new StockDisplayFormat(); // use class methods
Методы
Нет Методов у класса.Список изменений
| С версии 11.1.0 | Введена. |
Код StockDisplayFormat{} StockDisplayFormat{} WC 11.2.2
final class StockDisplayFormat {
/**
* Always show the quantity remaining in stock (e.g. "12 in stock").
*
* @var string
*/
public const ALWAYS_SHOW = '';
/**
* Only show the quantity remaining in stock when it is low (e.g. "Only 2 left in stock").
*
* @var string
*/
public const LOW_AMOUNT = 'low_amount';
/**
* Never show the quantity remaining in stock.
*
* @var string
*/
public const NEVER = 'no_amount';
}