Skip to content

Commit 044d4f4

Browse files
Matt Ehlingerveryspry
authored andcommitted
gw-currency-symbol-right-to-left.php: Updated to only modify the symbol fields so that field additions to the currency array do not cause things to break.
1 parent 74a02ba commit 044d4f4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

gravity-forms/gw-currency-symbol-right-to-left.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@
44
* http://gravitywiz.com/how-do-i-move-the-currency-symbol-from-the-right-to-the-left-for-gravity-forms/
55
*/
66
add_filter( 'gform_currencies', function( $currencies ) {
7-
$currencies['EUR'] = array(
8-
'name' => esc_html__( 'Euro', 'gravityforms' ),
9-
'symbol_left' => '€',
10-
'symbol_right' => '',
11-
'symbol_padding' => ' ',
12-
'thousand_separator' => '.',
13-
'decimal_separator' => ',',
14-
'decimals' => 2,
15-
'code' => 'EUR',
16-
);
7+
$currencies['EUR']['symbol_left'] = '€';
8+
$currencies['EUR']['symbol_right'] = '';
179
return $currencies;
1810
} );

0 commit comments

Comments
 (0)