---
title: fluentform/editor_components
description: "## Description  This filter pushes input editor components into the editor. ```php apply_filters('fluentform/editor_components', $editorComponents, $formId); ``` ## Usage   ```php add_filter('fluentform/editor_components', function ($components, $formId) { $component = $this->getComponent(); if ($component) { $components['advanced][] = $component; } return $components; }, 10, 2); ```…"
url: "https://fluentforms.com/docs/fluent_editor_components/"
updated: "2023-07-24"
category: Filter Hooks
---

# fluentform/editor_components

## Description 

This filter pushes input editor components into the editor.

```php
apply_filters('fluentform/editor_components', $editorComponents, $formId);
```

## Usage  

```php
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](http://codex.wordpress.org/Theme_Development#Functions_File) file of your active theme.

## Source Code

This filter is located in FluentForm\App\Modules\Component\Component -> index()
