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('fluentform_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('fluentform_rendering_field_data_input_text', 'your_custom_code_before_for_filtering', 10, 2);

function your_custom_code_before_for_filtering($data, $form)
   if($form->id != 5) {

   // Do your stuffs here
   return $data;

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:


Powered by BetterDocs

Leave a Reply

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