Table of Contents
Description #
This filter is available just before rendering the form. You can use this filter to modify the form object.
apply_filters('fluentform_rendering_form', $form);
Usage #
The following would apply to all forms:
add_filter('fluentform_rendering_form', function($form){
return $form;
}, 10, 1);
The following would apply to a specific form id 5:
add_filter('fluentform_submission_confirmation', 'my_function', 10, 1);
function my_function($form)
{
if($form->id!= 5) {
return $returnData;
}
// Do your stuffs here
return $form;
}
Parameters #
- $form (Object) The $form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in app/Modules/Component/Component.php