fluentform_editor_init_element_{$element}

Description  #

This filter is called before initializing each input element in the form editor page. Using this filter you can modify the input item settings data.

apply_filters('fluentform_editor_init_element_' . $formField['element'], $formField, $form);

Usage   #

add_filter('fluentform_editor_init_element_container', function ($item) {
     if (!isset($item['settings']['container_class'])) {
         $item['settings']['container_class'] = '';
     }
     return $item;
 });

Parameters #

  • $item (array) Item Data
  • $form (object) 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/Hooks/Common.php

Powered by BetterDocs

Leave a Reply

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