Skip to content

Instantly share code, notes, and snippets.

@techjewel
Created August 27, 2021 07:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techjewel/b71c25f32772d4ba495c4a7c0147feeb to your computer and use it in GitHub Desktop.
Save techjewel/b71c25f32772d4ba495c4a7c0147feeb to your computer and use it in GitHub Desktop.
Add your own options group for Fluent Forms Editor for Bulk Options
<?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