Description  #

This filter is available just before rendering the form. You can use this filter to modify the form attributes.

apply_filters('fluent_form_html_attributes',$attr, $form);

Usage   #

The following would apply to all forms:

add_filter('fluentform_rendering_form', 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 app/Services/FormBuilder/FormBuilder.php

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *