Skip to content

Commit 5e41cab

Browse files
committed
gw-modify-thousand-separator.php: Added new snippet to modify or remove the thousands separator in a currency field.
1 parent 7a71370 commit 5e41cab

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
/**
3+
* Gravity Wiz // Gravity Forms // Modify Thousandths Separator
4+
* https://gravitywiz.com/
5+
*
6+
* Usage:
7+
*
8+
* 1. Modify `$separator` to your desired thousandths separator. This example _removes_ the thousandths separator.
9+
* 2. Thats it.
10+
*/
11+
12+
add_filter( 'gform_currencies', function( $currencies ) {
13+
$separator = '';
14+
$currencies['EUR']['thousand_separator'] = $separator;
15+
return $currencies;
16+
} );

0 commit comments

Comments
 (0)