WordPress at Your Fingertips
function is not described

wc_format_stock_quantity_for_display() WC 3.0.0

Format the stock quantity ready for display.

Hooks from the function

Return

String.

Usage

wc_format_stock_quantity_for_display( $stock_quantity, $product );
$stock_quantity(int) (required)
Stock quantity.
$product(WC_Product) (required)
Product instance so that we can pass through the filters.

Changelog

Since 3.0.0 Introduced.

Code of wc_format_stock_quantity_for_display() WC 6.1.1

function wc_format_stock_quantity_for_display( $stock_quantity, $product ) {
	return apply_filters( 'woocommerce_format_stock_quantity', $stock_quantity, $product );
}