Update Gravity Forms currency EUR.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Update Gravity Forms currency EUR. | |
* | |
* @link https://www.pronamic.nl/2012/04/gravity-forms-euro-teken-voor-bedrag/ | |
* @link https://docs.gravityforms.com/gform_currencies/#1-update-euro | |
*/ | |
\add_filter( | |
'gform_currencies', | |
/** | |
* Gravity Forms currencies filter. | |
* | |
* @link https://github.com/wp-premium/gravityforms/blob/2.4.9/currency.php#L116-L146 | |
* @param array $currencies Gravity Forms currencies. | |
* @return array | |
*/ | |
function( $currencies ) { | |
$currencies['EUR'] = array( | |
'name' => __( 'Euro', 'text-domain' ), | |
'symbol_left' => '€', | |
'symbol_right' => '', | |
'symbol_padding' => ' ', | |
'thousand_separator' => '.', | |
'decimal_separator' => ',', | |
'decimals' => 2, | |
); | |
return $currencies; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment