Created
February 8, 2022 04:05
-
-
Save ahsanchowdhury/df3912eeeccf3c6fdfe8ed244416ac27 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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