Description #
This filter returns default settings when creating a form. You can hook into this and modify the default settings according to your preference.
apply_filters('fluentform/create_default_settings', $defaultSettings);
Usage #
add_filter('fluentform/create_default_settings', function($defaultSettings) {
return $defaultSettings;
}, 10, 1);
Parameters #
- $defaultSettings (array) Default Settings
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm\App\Models\Form -> getFormsDefaultSettings($formId = false)