Description #
This filter returns the list of global add-on modules.
apply_filters('fluentform/global_addons', []);
Usage #
add_filter('fluentform/global_addons', function ($addons) use ($isEnabled) {
$addons['zapier'] = [
'title' => 'Title',
'category' => 'crm',
'description' => 'Description',
'logo' => '',
'enabled' => ($isEnabled) ? 'yes' : 'no'
];
return $addons;
});
Parameters #
- $addons (array) Addon Modules
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm\app\Modules\AddOnModules -> showFluentAddOns()