Skip to content

Instantly share code, notes, and snippets.

@techjewel
Created October 21, 2021 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techjewel/3093cb332ce5086a7d1b59a85779070b to your computer and use it in GitHub Desktop.
Save techjewel/3093cb332ce5086a7d1b59a85779070b to your computer and use it in GitHub Desktop.
Fluent Forms add custom Demo Forms
<?php
add_filter('fluentform_predefined_forms', function ($demoForms) {
$demoForms['nicolas_form_1'] = array(
'screenshot' => '', // You may add your form screenshot here
'createable' => true,
'title' => 'Form 1 by Nicolas',
'tag' => ["nicolas form"],
'category' => 'From Nicolas',
'brief' => '',
'json' => '' // Add your Form JSON here for a single form export
);
$demoForms['nicolas_form_2'] = array(
'screenshot' => '', // You may add your form screenshot here
'createable' => true,
'title' => 'Form 2 by Nicolas',
'tag' => ["nicolas form2"],
'category' => 'From Nicolas', // Your form category
'brief' => '',
'json' => '' // Add your Form JSON here for a single form export
);
return $demoForms;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment