Aleš Sýkora / November 28, 2023 / 0 comments
Translate Step status in multistep Fluent Form
1 min read / Custom Code, Fluent Forms, Plugins, WordPress / Share on: Twitter, LinkedIn, Facebook
Post summary: If you need to translate the “Step 1 of xx” in fluent forms, you can use this filter to do that. Just put it in your code snippets plugin (for example Advanced scripts) and change the ‘Step’ and ‘of’ to needed words. If you use titles for step names, use this code instead:
If you need to translate the “Step 1 of xx” in fluent forms, you can use this filter to do that. Just put it in your code snippets plugin (for example Advanced scripts) and change the ‘Step’ and ‘of’ to needed words.
add_filter('fluentform_step_string', function($text){
$text = __('Step %activeStep% of %totalStep%', 'fluentform');
return $text;
});
If you use titles for step names, use this code instead:
add_filter('fluentform_step_string', function($text){
$text = __('Step %activeStep% of %totalStep% - %stepTitle%', 'fluentform');
return $text;
});
Fuel my passion for writing with a beer🍺
Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻