Description
This filter can be used to update existing currencies and/or create new currencies.
Usage
<?php
add_filter("gform_currencies", "update_currency");
?>
Parameters
- $currencies
- (array) An array of all existing currencies.
Examples
This example demonstrates how to update an existing currency.
<?php
add_filter("gform_currencies", "update_currency");
function update_currency($currencies) {
$currencies['EUR'] = array(
"name" => __("Euro", "gravityforms"),
"symbol_left" => '',
"symbol_right" => "€",
"symbol_padding" => " ",
"thousand_separator" => ',',
"decimal_separator" => '.',
"decimals" => 2);
return $currencies;
}
?>
Source Code
This filter is located in currency.php