Description #
This filter pushes input editor components into the editor.
apply_filters('fluentform/editor_components', $editorComponents, $formId);
Usage #
add_filter('fluentform/editor_components', function ($components, $formId) {
$component = $this->getComponent();
if ($component) {
$components['advanced][] = $component;
}
return $components;
}, 10, 2);
Parameters #
- $components (array) Components
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\Component\Component -> index()