fluentform_rendering_form

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 #

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

Powered by BetterDocs

Leave a Reply

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