Created
August 27, 2021 07:24
-
-
Save techjewel/b71c25f32772d4ba495c4a7c0147feeb to your computer and use it in GitHub Desktop.
Add your own options group for Fluent Forms Editor for Bulk Options
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
| <?php | |
| add_filter('fluentform_editor_vars', function($vars) { | |
| $bulkOptionsJson = $vars['bulk_options_json']; | |
| $arrays = json_decode($bulkOptionsJson, true); | |
| $arrays['New Option Group'] = ['Option 1', 'Option 2']; | |
| $vars['bulk_options_json'] = json_encode($arrays); | |
| return $vars; | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment