woocommerce_format_stock_quantity

woocommerce_format_stock_quantity

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_format_stock_quantity') is found 1 times:

  • /includes/wc-formatting-functions.php line 1288
     * @param  WC_Product $product        Product instance so that we can pass through the filters.
     * @return string
     */
    function wc_format_stock_quantity_for_display( $stock_quantity, $product ) {
    	return apply_filters( 'woocommerce_format_stock_quantity', $stock_quantity, $product );
    }
    
    /**
     * Format a sale price for display.
     *
     * @since  3.0.0