APP_Currencies::add_currency( string $currency_code, array $args = array() )
Adds a currency to the list of registered currencies if the currency does not already exist.
Package
Description Description
Allows plugins and themes to define their own custom currencies.
Parameters Parameters
- $currency_code
(string) (Required) Currency code used to identify currency.
- $args
(array) (Optional) Array of options related to this currency. 'symbol' => The symbol denoting the type of currency. IE: $ for USD 'name' => The formal name of the currency 'display' => The formatting for displaying the currency as a price. Will automatically replace strings '{symbol}' and '{price}'
Default value: array()
Return Return
(True) on success, false on failure.