Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ahsanchowdhury/df3912eeeccf3c6fdfe8ed244416ac27 to your computer and use it in GitHub Desktop.
Save ahsanchowdhury/df3912eeeccf3c6fdfe8ed244416ac27 to your computer and use it in GitHub Desktop.
add_filter('fluentform_numeric_styles', function($format){
$newFormat['dot_comma_style_zero_witout_comma_and_decimal'] = array(
'value' => 'dot_comma_style_zero_witout_comma_and_decimal',
'label' => __('US Style without Comma Decimal & Comma Separator (Ex: 123 456 789)', 'fluentform'),
'settings' => [
'decimal' => '.',
'separator' => '',
'precision' => 5,
'symbol' => ''
]
);
return array_merge($format, $newFormat);
}, 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment