Title: the_editor
Published: April 25, 2014
Last modified: February 24, 2026

---

# the_editor( string $content, string $id, string $prev_id, bool $media_buttons = true, int $tab_index = 2, bool $extended = true )

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#changelog)

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

This function has been deprecated since 3.3.0. Use [wp_editor()](https://developer.wordpress.org/reference/functions/wp_editor/)
instead.

Displays an editor: TinyMCE, HTML, or both.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/the_editor/?output_format=md#see-also)󠁿

 * [wp_editor()](https://developer.wordpress.org/reference/functions/wp_editor/)

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

 `$content`stringrequired

Textarea content.

`$id`stringoptional

HTML ID attribute value. Default `'content'`.

`$prev_id`stringoptional

Unused.

`$media_buttons`booloptional

Whether to display media buttons.

Default:`true`

`$tab_index`intoptional

Unused.

Default:`2`

`$extended`booloptional

Unused.

Default:`true`

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

    ```php
    function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {
    	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );

    	wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );
    }
    ```

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

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

| Uses | Description | 
| [wp_editor()](https://developer.wordpress.org/reference/functions/wp_editor/)`wp-includes/general-template.php` |

Renders an editor.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

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

| Version | Description | 
| [3.3.0](https://developer.wordpress.org/reference/since/3.3.0/) | Deprecated. Use [wp_editor()](https://developer.wordpress.org/reference/functions/wp_editor/)  | 
| [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%2Ffunctions%2Fthe_editor%2F)
before being able to contribute a note or feedback.