WooCommerce Code Reference

StockDisplayFormat
in package

Enum class for the possible values of the 'woocommerce_stock_format' option.

Tags
since
11.1.0

Table of Contents

ALWAYS_SHOW  = ''
Always show the quantity remaining in stock (e.g. "12 in stock").
LOW_AMOUNT  = 'low_amount'
Only show the quantity remaining in stock when it is low (e.g. "Only 2 left in stock").
NEVER  = 'no_amount'
Never show the quantity remaining in stock.

Constants

LOW_AMOUNT

Only show the quantity remaining in stock when it is low (e.g. "Only 2 left in stock").

public string LOW_AMOUNT = 'low_amount'