# Settings Filters
Filter Hooks 43 FiltersThese filters let you modify admin settings, global configuration, and permissions.
# fluentform/is_admin_page
You can toggle the rendering page as an admin page by using this filter.
Parameters
$status(boolean) Whether the rendering page is an Admin Page
Usage
add_filter('fluentform/is_admin_page', function($status) {
// Do your stuff here
return $staus;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/is_admin_page', $status);
This filter is located in FluentForm\App\Helpers\Helper -> isFluentAdminPage()
# fluentform/advanced_validation_settings
You can modify Advanced Validation Settings using this filter.
Parameters
$settings(array) Form Advanced Validation Settings
Usage
add_filter('fluentform/advanced_validation_settings', function($settings) {
// Do your stuff here
return $settings;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/advanced_validation_settings', $settings);
This filter is located in FluentForm\App\Models\Form -> getAdvancedValidationSettings($formId)
# fluentform/get_meta_key_settings_response
This filter returns settings responses meta key.
Parameters
$result(array) Responses$formId(int) Form ID$metaKey(string) Form ID
Usage
add_filter('fluentform/get_meta_key_settings_response', function ($result, $formId, $metaKey) {
// Do your stuff here
return $result;
}, 10, 3);
2
3
4
5
6
Reference
apply_filters('fluentform/get_meta_key_settings_response', $result, $formId, $metaKey);
This filter is located in FluentForm\App\Services\Settings\SettingsService -> get($attributes = [])
# fluentform/dashboard_capability
You can modify Fluent Forms Dashboard Capability using this filter.
Parameters
$roleName(string) Role Name. By Default, 'fluentform_dashboard_access'
Usage
add_filter('fluentform/dashboard_capability', function($roleName) {
// Do your stuff here
return $roleName;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/dashboard_capability', 'fluentform_dashboard_access');
This filter is located in FluentForm\App\Modules\Registerer\Menu -> register()
# fluentform/settings_capability
You can modify Fluent Forms Settings Capability using this filter.
Parameters
$roleName(string) Role Name. By Default, 'fluentform_settings_manager'
Usage
add_filter('fluentform/settings_capability', function($roleName) {
// Do your stuff here
return $roleName;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/settings_capability', 'fluentform_dashboard_access');
This filter is located in FluentForm\App\Modules\Registerer\Menu -> register()
# fluentform/admin_menu_bar_items
You can add or modify Admin Menu Bar items using this filter.
Parameters
$items(array) Admin Menu Bar items
Usage
add_filter('fluentform/admin_menu_bar_items', function($items) {
// Do your stuff here
return $items;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/admin_menu_bar_items', $items);
This filter is located in FluentForm\App\Modules\Registerer\AdminBar -> getMenuItems()
# fluentform/form_inner_route_permission_set
You can modify Admin Menu Route with permission using this filter.
Parameters
$permission(array) Admin Permission Set
Usage
add_filter('fluentform/form_inner_route_permission_set', function($permissions) {
// Do your stuff here
return $permissions;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/form_inner_route_permission_set', [ 'editor' => 'fluentform_forms_manager', 'settings' => 'fluentform_forms_manager', 'entries' => 'fluentform_entries_viewer' ]);
This filter is located in FluentForm\App\Modules\Registerer\AdminBar -> getMenuItems()
# fluentform/inner_route_has_permission
You can check admin menu route has proper permission using this filter.
Parameters
$hasPermission(boolean) Whether the current route has permission$route(string) Route Name$formId(int) Form ID
Usage
add_filter('fluentform/inner_route_has_permission', function($hasPermission, $route, $formId) {
// Do your stuff here
return $hasPermission;
}, 10, 3);
2
3
4
5
6
Reference
apply_filters('fluentform/form_inner_route_permission_set', Acl::hasPermission($toVerifyPermission), $route, $formId);
This filter is located in FluentForm\App\Modules\Registerer\Menu -> renderFormAdminRoute()
# fluentform/form_admin_menu
You can modify admin menu items using this filter.
Parameters
$permission(array) Admin Permission Set$form_id(int) Form ID$form(object) Form Object
Usage
add_filter('fluentform/form_admin_menu', function($formAdminMenus, $form_id, $form) {
// Do your stuff here
return $formAdminMenus;
}, 10, 3);
2
3
4
5
6
Reference
apply_filters('fluentform/form_admin_menu', $formAdminMenus, $form_id, $form);
This filter is located in FluentForm\App\Modules\Registerer\Menu -> renderFormInnerPages()
# fluentform/form_settings_menu
You can modify form settings menu items using this filter.
Parameters
$permission(array) Admin Permission Set
Usage
add_filter('fluentform/form_settings_menu', function ($settingsMenus, $form_id) {
// Do your stuff here
return $settingsMenus;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/form_settings_menu', $settingsMenus, $form_id);
This filter is located in FluentForm\App\Modules\Registerer\Menu -> renderSettings($form_id)
# fluentform/all_forms_vars
You can modify form variables using this filter.
Parameters
$data(array) Localized Form Vars under 'FluentFormApp'
Usage
add_filter('fluentform/all_forms_vars', function($data) {
// Do your stuff here
return $vars;
}, 10, 1);
2
3
4
5
6
$data consists of the following parameters:
$data = [
'plugin' => $this->app->config->get('app.slug'),
'formsCount' => $formsCount,
'hasPro' => defined('FLUENTFORMPRO'),
'upgrade_url' => fluentform_upgrade_url(),
'adminUrl' => admin_url('admin.php?page=fluent_forms'),
'adminUrlWithoutPageHash' => admin_url('admin.php'),
'isDisableAnalytics' => $this->app->applyFilters('fluentform/disabled_analytics', false),
'plugin_public_url' => fluentformMix(),
];
2
3
4
5
6
7
8
9
10
Reference
apply_filters('fluentform/all_forms_vars', $data);
This filter is located in FluentForm\App\Modules\Registerer\Menu -> renderForms()
# fluentform/editor_vars
You can modify editor variables using this filter.
Parameters
$data(array) Editor variables
Usage
add_filter('fluentform/editor_vars', function ($data) {
// Do your stuff here
return $data;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/editor_vars', $data);
This filter is located in FluentForm\App\Modules\Registerer\Menu -> enqueueEditorAssets()
# fluentform/global_settings_current_component
You can modify selected global setting component using this filter.
Parameters
$currentComponent(array) Selected Global Setting Component
Usage
add_filter('fluentform/global_settings_current_component', function ($currentComponent) {
// Do your stuff here
return $currentComponent;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/global_settings_current_component', $currentComponent);
This filter is located in FluentForm\App\Modules\Registerer\Menu -> renderGlobalSettings()
# fluentform/global_settings_components
You can modify all global setting components using this filter.
Parameters
$components(array) All Global Setting Component
Usage
add_filter('fluentform/global_settings_components', function ($components) {
// Do your stuff here
return $components;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/global_settings_components', $components);
This filter is located in FluentForm\App\Modules\Registerer\Menu -> renderGlobalSettings()
# fluentform/admin_i18n
You can alter or added more internationalize (i18n) for admin side string using this filter.
Parameters
$i18n(array) All the i18n Strings
Usage
add_filter('fluentform/admin_i18n', function ($i18n) {
// Do your stuff here
return $i18n;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/admin_i18n', $i18n);
This filter is located in FluentForm\App\Modules\Registerer\TranslationString -> getAdminI18n()
# fluentform/global_settings_i18n
You can alter or added more internationalize (i18n) for global settings string using this filter.
Parameters
$i18n(array) All the i18n Strings
Usage
add_filter('fluentform/global_settings_i18n', function ($i18n) {
// Do your stuff here
return $i18n;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/global_settings_i18n', $i18n);
This filter is located in FluentForm\App\Modules\Registerer\TranslationString -> getGlobalSettingsI18n()
# fluentform/editor_i18n
You can alter or added more internationalize (i18n) for form editor string using this filter.
Parameters
$i18n(array) All the i18n Strings
Usage
add_filter('fluentform/editor_i18n', function ($i18n) {
// Do your stuff here
return $i18n;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/editor_i18n', $i18n);
This filter is located in FluentForm\App\Modules\Registerer\TranslationString -> getEditorI18n()
# fluentform/entries_i18n
You can alter or added more internationalize (i18n) for form submission string using this filter.
Parameters
$i18n(array) All the i18n Strings
Usage
add_filter('fluentform/entries_i18n', function ($i18n) {
// Do your stuff here
return $i18n;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/entries_i18n', $i18n);
This filter is located in FluentForm\App\Modules\Registerer\TranslationString -> getEntriesI18n()
# fluentform/addOnModule_i18n
You can alter or added more internationalize (i18n) for addon module string using this filter.
Parameters
$i18n(array) All the i18n Strings
Usage
add_filter('fluentform/addOnModule_i18n', function ($i18n) {
// Do your stuff here
return $i18n;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/addOnModule_i18n', $i18n);
This filter is located in FluentForm\App\Modules\Registerer\TranslationString -> getAddOnModuleI18n()
# fluentform/transfer_i18n
You can alter or added more internationalize (i18n) for form transfer string using this filter.
Parameters
$i18n(array) All the i18n Strings
Usage
add_filter('fluentform/transfer_i18n', function ($i18n) {
// Do your stuff here
return $i18n;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/transfer_i18n', $i18n);
This filter is located in FluentForm\App\Modules\Registerer\TranslationString -> getTransferModuleI18n()
# fluentform/payments_i18n
You can alter or added more internationalize (i18n) for payments string using this filter.
Parameters
$i18n(array) All the i18n Strings
Usage
add_filter('fluentform/payments_i18n', function ($i18n) {
// Do your stuff here
return $i18n;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/payments_i18n', $i18n);
This filter is located in FluentForm\App\Modules\Registerer\TranslationString -> getPaymentsI18n()
# fluentform/addons_extra_menu
You can modify addon modules menus using this filter.
Parameters
$extraMenus(array) Addon Modules Menus
Usage
add_filter('fluentform/addons_extra_menu', function ($menus) {
$menus['fluentform_pdf'] = __('Fluent Forms PDF', 'fluentform');
return $menus;
}, 99, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/addons_extra_menu', $extraMenus);
This filter is located in FluentForm\App\Modules\Widgets\AddOnModule -> render()
# fluentform/user_guide_links
You can modify documentation module user guide links using this filter.
Parameters
$guides(array) User Guide Links
Usage
add_filter('fluentform/user_guide_links', function ($guides) {
// Do your stuff here
return $guides;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/user_guide_links', $guides);
This filter is located in FluentForm\App\Modules\Widgets\DocumentationModule -> getUserGuides()
# fluentform/display_add_form_button
You can toggle to support pages for showing media button using this filter.
Parameters
$isEligiblePage(array) User Guide Links
Usage
add_filter('fluentform/display_add_form_button', function ($isEligiblePage) {
// Do your stuff here
return $isEligiblePage;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/display_add_form_button', $isEligiblePage);
This filter is located in FluentForm\App\Modules\Widgets\EditorButtonModule -> pageSupportedMediaButtons()
# 'fluentform/rendering_field_data_' . $elementName
This filter is fired right before rendering an form field with the data and settings. You can use this filter to modify the output of a form field.
Parameters
$data(array) Form Field Element$form(object) Form Object
Usage
add_filter('fluentform/rendering_field_data_input_text', function ($data, $form)
{
if($form->id != 5) {
return;
}
// Do your stuffs here
return $data;
}, 10, 2);
2
3
4
5
6
7
8
9
10
add_filter('fluentform/rendering_field_data_select', function ($data, $form) {
if ($form->id != 91) {
return $data;
}
// check if the name attriibute is 'dynamic_dropdown'
if (\FluentForm\Framework\Helpers\ArrayHelper::get($data, 'attributes.name') != 'dynamic_dropdown') {
return $data;
}
// We are merging with existing options here
$data['settings']['advanced_options'] = array_merge($data['settings']['advanced_options'], [
[
"label" => "Dynamic Option 1",
"value" => "Dynamic Option 1",
"calc_value" => ""
],
[
"label" => "Dynamic Option 2",
"value" => "Dynamic Option 2",
"calc_value" => ""
]
]);
return $data;
}, 10, 2);
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Reference
apply_filters('fluentform/rendering_field_data_' . $elementName, $data, $form);
This filter is located in FluentForm\App\Services\FormBuilder\Components\Text -> compile($data, $form)
# 'fluentform/rendering_field_html_' . $elementName
This filter returns HTML output for each input of the form. You can hook into this and modify the HTML output of any field.
Parameters
$html(string) HTML output of field$data(array) Form Field Element$form(object) Form Object
Usage
add_filter('fluentform/rendering_field_html_text', function ($html, $data, $form) {
// Do your stuff here
return $html;
}, 10, 3);
2
3
4
5
6
Reference
apply_filters('fluentform/rendering_field_html_' . $elementName, $html, $data, $form);
This filter is located in FluentForm\App\Services\FormBuilder\Components\Text -> compile($data, $form)
# fluentform/itl_options
You can use this filter to modify the JavaScript options object that is passed to the intl-tel-input library for the phone field. This allows for deep customization of the field's behavior, validation, and appearance.
Parameters
$itlOptions(array) The configuration options for the intl-tel-input library.$data(array) (array) The configuration data for the specific phone field being rendered.$form(object) Form Object
The default configuration in Fluent Forms is:
$itlOptions = [
'separateDialCode' => false,
'nationalMode' => true,
'autoPlaceholder' => 'aggressive',
'formatOnDisplay' => true,
'validationNumberTypes' => [
'MOBILE',
'FIXED_LINE_OR_MOBILE',
'FIXED_LINE',
'TOLL_FREE', // >= Fluent Forms 6.1.10
]
];
2
3
4
5
6
7
8
9
10
11
12
Common Use Cases & Examples
Expand Validation to Accept Voicemails, VoIP, etc.
By default, Fluent Forms validates against standard
MOBILEandFIXED_LINEnumbers. As of Fluent Forms 6.1.10, it also validates againstTOLL_FREE. But you can expand this to include other types of validation numbers:- Allowed Validation Number Types
FIXED_LINE- A standard landline number.MOBILE- A mobile (cell) phone number.FIXED_LINE_OR_MOBILE- Used for regions where it's not possible to distinguish between fixed-line and mobile numbers from the number alone.TOLL_FREE- Numbers that are free for the caller to dial (e.g., 800, 888 in the US).PREMIUM_RATE- High-cost numbers for services, typically charged at a higher rate.SHARED_COST- The cost of the call is shared between the caller and the receiver.VOIP- Voice over IP numbers.PERSONAL_NUMBER- A location-independent "follow-me" number that can be routed to different physical phones.PAGER- A number for a paging service.UAN- A Universal Access Number, used by businesses to be reachable on a single number across a country.VOICEMAIL- A number that goes directly to a voicemail service.
- Allowed Validation Number Types
add_filter('fluentform/itl_options', function ($itlOptions) {
// A list of all possible validation types that support.
$itlOptions['validationNumberTypes'] = [
'MOBILE',
'FIXED_LINE_OR_MOBILE',
'FIXED_LINE',
'TOLL_FREE',
'VOIP'
];
return $itlOptions;
});
2
3
4
5
6
7
8
9
10
11
Display the Dial Code in a Separate Field.
For a different UI style, you can have the country dial code appear next to the main input field instead of inside it.
add_filter('fluentform/itl_options', function ($itlOptions) {
// This splits the flag dropdown and the number input.
$itlOptions['separateDialCode'] = true;
return $itlOptions;
});
2
3
4
5
Use Full-Screen Dropdown
To improve the user experience on screens, you can make the country dropdown open in a full-screen modal.
add_filter('fluentform/itl_options', function ($itlOptions) {
// The default is false. Set to true to enable.
$itlOptions['useFullscreenPopup'] = true;
return $itlOptions;
});
2
3
4
5
Reference
apply_filters('fluentform/itl_options', $itlOptions, $data, $form);
This filter is located in FluentForm\App\Services\FluentConversational\Classes\Converter\Converter -> getPhoneFieldSettings($data, $form), FluentFormPro\Components\PhoneField.php:273
# fluentform/ip_provider
This filter returns the IP provider used in the phone field.
Parameters
$url(array) IP provider URL
Usage
add_filter('fluentform/ip_provider', function ($url) {
// Do your stuff here
return $url;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/ip_provider', $url);
This filter is located in FluentForm\App\Services\FluentConversational\Classes\Converter\Converter -> getPhoneFieldSettings($data, $form)
# fluentform/available_date_formats
You can modify date formats using the filter.
Parameters
$dateFormats(array) Date formats
Usage
add_filter('fluentform/available_date_formats', function ($dateFormats) {
// Do your stuff here
return $dateFormats;
}, 10, 1);
2
3
4
5
6
Date formats to filter:
[
'm/d/Y' => 'm/d/Y - (Ex: 04/28/2018)', // USA
'd/m/Y' => 'd/m/Y - (Ex: 28/04/2018)', // Canada, UK
'd.m.Y' => 'd.m.Y - (Ex: 28.04.2019)', // Germany
'n/j/y' => 'n/j/y - (Ex: 4/28/18)',
'm/d/y' => 'm/d/y - (Ex: 04/28/18)',
'M/d/Y' => 'M/d/Y - (Ex: Apr/28/2018)',
'y/m/d' => 'y/m/d - (Ex: 18/04/28)',
'Y-m-d' => 'Y-m-d - (Ex: 2018-04-28)',
'd-M-y' => 'd-M-y - (Ex: 28-Apr-18)',
'm/d/Y h:i K' => 'm/d/Y h:i K - (Ex: 04/28/2018 08:55 PM)', // USA
'm/d/Y H:i' => 'm/d/Y H:i - (Ex: 04/28/2018 20:55)', // USA
'd/m/Y h:i K' => 'd/m/Y h:i K - (Ex: 28/04/2018 08:55 PM)', // Canada, UK
'd/m/Y H:i' => 'd/m/Y H:i - (Ex: 28/04/2018 20:55)', // Canada, UK
'd.m.Y h:i K' => 'd.m.Y h:i K - (Ex: 28.04.2019 08:55 PM)', // Germany
'd.m.Y H:i' => 'd.m.Y H:i - (Ex: 28.04.2019 20:55)', // Germany
'h:i K' => 'h:i K (Only Time Ex: 08:55 PM)',
'H:i' => 'H:i (Only Time Ex: 20:55)',
];
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Reference
apply_filters('fluentform/available_date_formats', $dateFormats);
This filter is located in FluentForm\App\Services\FormBuilder\Components\DateTime -> getAvailableDateFormats()
# fluentform/editor_countries
You can modify or add more countries using the filter.
Parameters
$country_names(array) Country Names List
Usage
add_filter('fluentform/editor_countries', function ($country_names) {
// Do your stuff here
return $country_names;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/editor_countries', $country_names);
This filter is located in FluentForm\App\Services\FormBuilder\CountryNames.php
# fluentform/form_settings_smartcodes
You can modify or add more smartcodes for form settings using the filter.
Parameters
$groups(array) All Shortcode Group$form(object) Form Object
Usage
add_filter('fluentform/form_settings_smartcodes', function ($groups, $form) {
// Do your stuff here
return $groups;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/form_settings_smartcodes', $groups, $form);
This filter is located in FluentForm\App\Services\FormBuilder\EditorShortcode -> getShortCodes($form)
# 'fluentform/validation_message_' . $ruleName
You can use this filter to modify the validation message of a specific rule.
Parameters
$message(string) Validation Message$item(object) Current Item
Usage
add_filter('fluentform/validation_message_' . $ruleName, function ($message, $item) {
// Do your stuff here
return $message;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/validation_message_' . $ruleName, $rule['message'], $item);
This filter is located in FluentForm\App\Services\FormBuilder\FormBuilder -> extractValidationRule($item)
# 'fluentform/validation_message_' . $item['element'] . '_' . $ruleName
You can use this filter to modify the validation message of an element rule.
Parameters
$message(string) Validation Message$item(object) Current Item
Usage
add_filter('fluentform/validation_message_' . $item['element'] . '_' . $ruleName, function ($message, $item) {
// Do your stuff here
return $message;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/validation_message_' . $item['element'] . '_' . $ruleName, $rule['message'], $item);
This filter is located in FluentForm\App\Services\FormBuilder\FormBuilder -> extractValidationRule($item)
# 'fluentform/item_rules_' . $item['element']
You can use this filter to modify the rules of an element.
Parameters
$message(string) Validation Message$item(object) Current Item
Usage
add_filter('fluentform/item_rules_' . $item['element'], function ($rules, $item) {
// Do your stuff here
return $rules;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/item_rules_' . $item['element'], $rule['message'], $item);
This filter is located in FluentForm\App\Services\FormBuilder\FormBuilder -> extractValidationRule($item)
# fluentform/will_return_html
You can use this filter to return Shortcode parsed data as HTML.
Parameters
$isHtml(boolean) Whether to return Parsed Data as HTML$isProvider(boolean) Whether provider data is HTML or not$key(string) Key Name
Usage
add_filter('fluentform/will_return_html', function ($isHtml, $isProvider, $key) {
// Do your stuff here
return $isHtml;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/will_return_html', $isHtml, $isProvider, $key);
This filter is located in FluentForm\App\Services\FormBuilder -> buildFormBody($form)
# fluentform/payment_smartcode
You can use this filter to modify smartcodes for Payment.
Parameters
$value(string) Form Data$property(array) Substring after {payment.$instance(Object) Shortcode Parser Instance
Usage
add_filter('fluentform/payment_smartcode', function ($value, $property, $instance) {
// Do your stuff here
return $item;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/payment_smartcode', $value, $property, self::getInstance());
This filter is located in FluentForm\App\Services\FormBuilder\ShortcodeParser -> parseShortCodeFromString($parsable, $isUrl = false, $isHtml = false)
# fluentform/file_type_options
You can modify file types for upload files.
Parameters
$fileTypeOptions(array) Supported File Type Options
Usage
add_filter('fluentform/file_type_options', function ($fileTypeOptions) {
// Do your stuff here
return $fileTypeOptions;
}, 10, 1);
2
3
4
5
6
File Type Options Array:
$fileTypeOptions = [
[
'label' => __('Images (jpg, jpeg, gif, png, bmp)', 'fluentform'),
'value' => 'jpg|jpeg|gif|png|bmp',
],
[
'label' => __('Audio (mp3, wav, ogg, oga, wma, mka, m4a, ra, mid, midi)', 'fluentform'),
'value' => 'mp3|wav|ogg|oga|wma|mka|m4a|ra|mid|midi|mpga',
],
[
'label' => __('Video (avi, divx, flv, mov, ogv, mkv, mp4, m4v, divx, mpg, mpeg, mpe)', 'fluentform'),
'value' => 'avi|divx|flv|mov|ogv|mkv|mp4|m4v|divx|mpg|mpeg|mpe|video/quicktime|qt',
],
[
'label' => __('PDF (pdf)', 'fluentform'),
'value' => 'pdf',
],
[
'label' => __('Docs (doc, ppt, pps, xls, mdb, docx, xlsx, pptx, odt, odp, ods, odg, odc, odb, odf, rtf, txt)', 'fluentform'),
'value' => 'doc|ppt|pps|xls|mdb|docx|xlsx|pptx|odt|odp|ods|odg|odc|odb|odf|rtf|txt',
],
[
'label' => __('Zip Archives (zip, gz, gzip, rar, 7z)', 'fluentform'),
'value' => 'zip|gz|gzip|rar|7z',
],
[
'label' => __('Executable Files (exe)', 'fluentform'),
'value' => 'exe',
],
[
'label' => __('CSV (csv)', 'fluentform'),
'value' => 'csv',
],
];
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Reference
apply_filters('fluentform/file_type_options', $fileTypeOptions);
This filter is located in FluentForm\App\Services\FormBuilder\ValidationRuleSettings
# fluentform/get_global_settings_values
You can modify global settings using the filter.
Parameters
$values(array) All Global Settings Values$key(string) Key Name
Usage
add_filter('fluentform/get_global_settings_values', function ($values, $key) {
// Do your stuff here
return $values;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/get_global_settings_values', $values, $key);
This filter is located in FluentForm\App\Services\GlobalSettings\GlobalSettingsService -> get($attributes = [])
# fluentform/entry_migration_max_limit
You can use this filter to set the submission migration limit.
Parameters
$maxLimit(int) Submission Migration Max Limit, By Default 1000;$key(string) Migration Key Name$totalEntries(array) Total Submissions$formId(int) Form ID
Usage
add_filter('fluentform/entry_migration_max_limit', function ($maxLimit, $key, $totalEntries, $formId) {
// Do your stuff here
return $maxLimit;
}, 10, 4);
2
3
4
5
6
Reference
apply_filters('fluentform/entry_migration_max_limit', static::DEFAULT_ENTRY_MIGRATION_MAX_LIMIT, $this->key, $totalEntries, $formId);
This filter is located in FluentForm\App\Services\Migrator\Classes\CalderaMigrator -> getEntries($formId)
# fluentform/editor_shortcodes
You can use this filter to modify all the general shortcodes.
Parameters
$generalShortCodes(array) All General Shortcodes
Usage
add_filter('fluentform/editor_shortcodes', function ($generalShortCodes) {
// Do your stuff here
return $generalShortCodes;
}, 10, 1);
2
3
4
5
6
[
'title' => 'General SmartCodes',
'shortcodes' => [
'{wp.admin_email}' => __('Admin Email', 'fluentform'),
'{wp.site_url}' => __('Site URL', 'fluentform'),
'{wp.site_title}' => __('Site Title', 'fluentform'),
'{ip}' => __('IP Address', 'fluentform'),
'{date.m/d/Y}' => __('Date (mm/dd/yyyy)', 'fluentform'),
'{date.d/m/Y}' => __('Date (dd/mm/yyyy)', 'fluentform'),
'{embed_post.ID}' => __('Embedded Post/Page ID', 'fluentform'),
'{embed_post.post_title}' => __('Embedded Post/Page Title', 'fluentform'),
'{embed_post.permalink}' => __('Embedded URL', 'fluentform'),
'{http_referer}' => __('HTTP Referer URL', 'fluentform'),
'{user.ID}' => __('User ID', 'fluentform'),
'{user.display_name}' => __('User Display Name', 'fluentform'),
'{user.first_name}' => __('User First Name', 'fluentform'),
'{user.last_name}' => __('User Last Name', 'fluentform'),
'{user.user_email}' => __('User Email', 'fluentform'),
'{user.user_login}' => __('User Username', 'fluentform'),
'{browser.name}' => __('User Browser Client', 'fluentform'),
'{browser.platform}' => __('User Operating System', 'fluentform'),
'{random_string.your_prefix}' => __('Random String with Prefix', 'fluentform'),
],
];
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Reference
apply_filters('fluentform/editor_shortcodes', $generalShortCodes);
This filter is located in FluentForm\boot\globals.php -> fluentFormEditorShortCodes()
# fluentform/all_editor_shortcodes
You can use this filter to modify all the editor shortcodes.
Parameters
$generalShortCodes(array) All General Shortcodes$form(object) Form Object
Usage
add_filter('fluentform/all_editor_shortcodes', function ($editorShortCodes, $form) {
// Do your stuff here
return $editorShortCodes;
}, 10, 2);
2
3
4
5
6
Reference
apply_filters('fluentform/all_editor_shortcodes', $editorShortCodes, $form);
This filter is located in FluentForm\boot\globals.php -> fluentFormGetAllEditorShortCodes($form)
# fluentform/dashboard_notices
You can use this filter to add dashboard notices.
Parameters
$notices(array) Notices
Usage
add_filter('fluentform/dashboard_notices', function ($notices) {
// Do your stuff here
return $notices;
}, 10, 1);
2
3
4
5
6
Reference
apply_filters('fluentform/dashboard_notices', $notices);
This filter is located in FluentForm\app\views\admin\all_entries.php
# fluentform/permission_callback
This filter checks the permission callback status. You can check the current permission and change the permission status.
Parameters
$status(boolean) Permission Status$permission(string) Permission Name
Usage
add_filter('fluentform/permission_callback', function($status, $permission) {
// Do your staff
return $status;
}, 10, 2);
2
3
4
5
6
Reference apply_filters('fluentform/permission_callback', $status, $permission);
This filter is located in FluentForm\app\Hooks\filters.php
← Form Integration →