WordPress at a glance
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. Nothing.

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 5.3.0

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