Skip to content

Instantly share code, notes, and snippets.

@spivurno
Last active September 14, 2021 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save spivurno/0d772bae83bb216e89aa to your computer and use it in GitHub Desktop.
Save spivurno/0d772bae83bb216e89aa to your computer and use it in GitHub Desktop.
Gravity Wiz // Gravity Forms // Move Currency Symbol from the Left to the Right
<?php
/**
* Graivty Wiz // Gravity Forms // Move Currency Symbol from the Right to the Left (i.e. "0,00 €" to "€ 0,00")
* http://gravitywiz.com/how-do-i-move-the-currency-symbol-from-the-right-to-the-left-for-gravity-forms/
*/
add_filter( 'gform_currencies', 'gw_modify_currencies' );
function gw_modify_currencies( $currencies ) {
$currencies['EUR'] = array(
'name' => esc_html__( 'Euro', 'gravityforms' ),
'symbol_left' => '&#8364;',
'symbol_right' => '',
'symbol_padding' => ' ',
'thousand_separator' => '.',
'decimal_separator' => ',',
'decimals' => 2
);
return $currencies;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment