Title: the_editor_content
Published: April 25, 2014
Last modified: April 28, 2025

---

# apply_filters( ‘the_editor_content’, string $content, string $default_editor )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#wp--skip-link--target)

Filters the default editor content.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#parameters)󠁿

 `$content`string

Default editor content.

`$default_editor`string

The default editor for the current user.
 Either `'html'` or `'tinymce'`.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#source)󠁿

    ```php
    $content = apply_filters( 'the_editor_content', $content, $default_editor );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-editor.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-editor.php#L289)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-editor.php#L289-L289)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Widget_Text::form()](https://developer.wordpress.org/reference/classes/wp_widget_text/form/)`wp-includes/widgets/class-wp-widget-text.php` |

Outputs the Text widget settings form.

  | 
| [_WP_Editors::editor()](https://developer.wordpress.org/reference/classes/_wp_editors/editor/)`wp-includes/class-wp-editor.php` |

Outputs the HTML for a single instance of the editor.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/the_editor_content/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fthe_editor_content%2F)
before being able to contribute a note or feedback.