fluent_editor_element_settings_placement

Description  #

This filter returns the editor element settings for each input. Using this filter you can insert more editor settings for input in the editor.

apply_filters('fluent_editor_element_settings_placement', $placements , $form);

Usage   #

add_filter('fluent_editor_element_settings_placement', function ($placements, $form) {
     $placements['terms_and_condition']['generalExtras'] = [
         'tc_agree_text'      => [
             'template' => 'inputText',
             'label'    => 'Agree Button Text',
         ],
         'tc_dis_agree_text' => [
             'template' => 'inputText',
             'label'    => 'Disagree Button Text',
         ]
     ];
     return $placements;
 }, 10, 3);

Parameters #

  • $placements (array) Placements settings
  • $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/Services/FormBuilder/BaseFieldManager.php

Powered by BetterDocs

Leave a Reply

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