Skip to content

Commit

Permalink
gw-modify-thousand-separator.php: Added new snippet to modify or re…
Browse files Browse the repository at this point in the history
…move the thousands separator in a currency field.
  • Loading branch information
veryspry committed Oct 20, 2023
1 parent 6af9e60 commit d207d61
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gravity-forms/gw-modify-thousand-separator.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Gravity Wiz // Gravity Forms // Modify Thousandths Separator
* https://gravitywiz.com/
*
* Usage:
*
* 1. Modify `$separator` to your desired thousandths separator. This example _removes_ the thousandths separator.
* 2. Thats it.
*/

add_filter( 'gform_currencies', function( $currencies ) {
$separator = '';
$currencies['EUR']['thousand_separator'] = $separator;
return $currencies;
} );

0 comments on commit d207d61

Please sign in to comment.