Move Currency Symbol from the Right to the Left (i.e. “0,00 €” to “€ 0,00”)

Read the Walkthrough

Code

Filename: gw-currency-symbol-right-to-left.php

<?php
/**
 * Graivty Wiz // Gravity Forms // Move Currency Symbol from the Right to the Left (i.e. "0,00 €" to "€ 0,00")
 * https://gravitywiz.com/how-do-i-move-the-currency-symbol-from-the-right-to-the-left-for-gravity-forms/
 */
add_filter( 'gform_currencies', function( $currencies ) {
	$currencies['EUR']['symbol_left']  = '&#8364;';
	$currencies['EUR']['symbol_right'] = '';
	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.