Last active
September 9, 2021 13:14
-
-
Save rafiahmedd/4dcc8add3fc445caace166d33a1cf1b2 to your computer and use it in GitHub Desktop.
Add new number format on fluent form
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($old){ | |
| $new['dot_space_style']= array( | |
| 'value' => 'dot_space_style', | |
| 'label' => __('EU Style with Decimal (Ex: 123 456,00)', 'fluentform'), | |
| 'settings' => [ | |
| 'decimal' => ',', | |
| 'separator' => ' ', | |
| 'precision' => 2, | |
| 'symbol' => '' | |
| ] | |
| ); | |
| return array_merge($old, $new); | |
| },10,1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment