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


Top ↑

Return Return

(string) $amount Newly formatted amount or Price Not Available


Top ↑

Source Source

File: includes/formatting.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.