Skip to content

Instantly share code, notes, and snippets.

@vfontjr

vfontjr/add_currency.php

Last active Jun 3, 2021
Embed
What would you like to do?
<?php
apply_filters( 'frm_currencies', 'add_currency' );
function add_currency( $currencies ) {
/* this adds the Eastern Caribbean dollar to Formidable's currency list */
$currencies['XCD']= array(
'name' => __( 'Eastern Caribbean dollar', 'formidable-pro' ),
'symbol_left' => '$',
'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