Skip to content

Instantly share code, notes, and snippets.

@slaFFik
Last active January 11, 2023 09:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaFFik/2b9ebeb5058d9e46082ff7d71856ecdd to your computer and use it in GitHub Desktop.
Save slaFFik/2b9ebeb5058d9e46082ff7d71856ecdd to your computer and use it in GitHub Desktop.
<?php
add_filter( 'wpforms_currencies', function( $currencies ) {
$currencies['RON'] = array(
'name' => __( 'Romanian Leu', 'wpforms' ),
'symbol' => ' lei',
'symbol_pos' => 'right',
'thousands_separator' => ',',
'decimal_separator' => '.',
'decimals' => 2,
);
return $currencies;
});
@shaparak24
Copy link

this php file where should i copy it?
or create a new php file with that name???

@Jaffar29sha
Copy link

Hi Shaparak24,

Add the above code into your functions.php file.

@karan1232345
Copy link

Stripe is not accepting this currency; how can we setup up payment gateways?

@slaFFik
Copy link
Author

slaFFik commented Jan 11, 2023

@karan1232345 Use the currency from WPForms settings that is accepted by Stripe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment