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('fluentform/editor_element_settings_placement', $placements , $form);
Usage #
add_filter('fluentform/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, 2);
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 FluentForm\App\Modules\Registerer\Menu -> enqueueEditorAssets()