Last active
January 11, 2023 09:12
-
-
Save slaFFik/2b9ebeb5058d9e46082ff7d71856ecdd to your computer and use it in GitHub Desktop.
WPForms: Add new currency. More examples: https://wpforms.com/developers/how-to-create-a-new-currency-symbol-for-wpforms/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
}); |
Hi Shaparak24,
Add the above code into your functions.php file.
Stripe is not accepting this currency; how can we setup up payment gateways?
@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
this php file where should i copy it?
or create a new php file with that name???