Description #
This filter is available just before rendering the form. You can use this filter to modify the form attributes.
apply_filters('fluentform/html_attributes',$attr, $form);
Usage #
The following would apply to all forms:
add_filter('fluentform/html_attributes', function($attr, $form){
return $attr;
}, 10, 2);
Parameters #
- $form (object) The $form Object
- $attr (array) Form Attributes
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 = [])