Three Decimal Currencies

Read the Walkthrough

Code

Filename: gw-three-decimal-currencies.php

<?php
/**
 * Gravity Wiz // Gravity Forms // Three Decimal Currencies
 * https://gravitywiz.com/how-to-add-three-decimals-with-gravity-form-currencies/
 */
add_filter( 'gform_currencies', function( $currencies ) {
	$currencies['EUR']['decimals'] = 3;
	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.