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; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@karan1232345 Use the currency from WPForms settings that is accepted by Stripe.