Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Last active June 3, 2021 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfontjr/f5141935e44df467463c0e37f8a65bb1 to your computer and use it in GitHub Desktop.
Save vfontjr/f5141935e44df467463c0e37f8a65bb1 to your computer and use it in GitHub Desktop.
<?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