fluenform_rendering_field_data_{INPUT_KEY}

Description #

This filter is fired right before rendering an input field with the input data and settings. You can use this to alter to the output of the input of Fluent Forms input.

apply_filters('fluenform_rendering_field_data_{INPUT_KEY}',  $data, $form);

Usage #

In the example we have used the key for input text which is ‘input_text‘ .

add_filter('fluenform_rendering_field_data_input_text', 'your_custom_code_before_for_filtering', 10, 2);


function your_custom_code_before_insert_to_database_function($data, $form)
{
   if($form->id != 5) {
      return;
   }

   // Do your stuffs here
   return $response;
}

Parameters #

  • $data Array ( input field settings & attributes)
  • $form Object

Placement #

This code should be placed in the functions.php file of your active theme.

Source Code #

This filter is located in every input component class. You can find the component from here:

wp-content/plugins/fluentform/app/Services/FormBuilder/Components/

Powered by BetterDocs

Leave a Reply

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