Description #
This filter is available before rendering the form. You can add custom classes using this filter.
apply_filters('fluentform/form_class', $formClass, $form);
Usage #
The following would apply to all forms:
add_filter('fluentform/form_class', function($formClass, $form){
return $formClass;
}, 10, 2);
Parameters #
- $form (object) The $form Object
- $formClass (string) Form Class
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm\App\Services\FormBuilder\FormBuilder -> build($form, $extraCssClass = ”, $instanceCssClass = ”, $atts = [])