edd_format_amount( string $amount, string $decimals = true )
Returns a nicely formatted amount.
Description Description
Parameters Parameters
- $amount
-
(Required) Price amount to format
- $decimals
-
(Optional) Whether or not to use decimals. Useful when set to false for non-currency numbers.
Default value: true
Return Return
(string) $amount Newly formatted amount or Price Not Available
Source Source
File: includes/formatting.php
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |