Modify Thousandths Separator

Usage

  1. Modify $separator to your desired thousandths separator. This example removes the thousandths separator.
  2. Thats it.

Code

Filename: gw-modify-thousand-separator.php

<?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;
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.