wc_stock_amount()WC 1.0

Formats a stock amount by running it through a filter.

Hooks from the function

Return

Int|float.

Usage

wc_stock_amount( $amount );
$amount(int|float) (required)
Stock amount.

wc_stock_amount() code WC 8.7.0

function wc_stock_amount( $amount ) {
	return apply_filters( 'woocommerce_stock_amount', $amount );
}