Description #
This filter is available before rendering each form item. You can use this filter to modify the form inputs.
apply_filters('fluentform/before_render_item', $item, $form);
Usage #
The following would apply to all forms:
add_filter('fluentform/before_render_item', function($item, $form){
return $item;
}, 10, 2);
Parameters #
- $form (object) The $form Object
- $item (array) Input Item
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 -> buildFormBody($form)