Skip to content

Instantly share code, notes, and snippets.

@rafiahmedd
Last active September 9, 2021 13:14
Show Gist options
  • Select an option

  • Save rafiahmedd/4dcc8add3fc445caace166d33a1cf1b2 to your computer and use it in GitHub Desktop.

Select an option

Save rafiahmedd/4dcc8add3fc445caace166d33a1cf1b2 to your computer and use it in GitHub Desktop.
Add new number format on fluent form
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