# the_editor()

URL: https://chugunov.pro/api-wordpress/functions/the_editor/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 2.1.0.

> Устаревший элемент. Помечен устаревшим с версии 3.3.0.

## Сигнатура

```php
the_editor( string $content, string $id = 'content', string $prev_id = 'title', bool $media_buttons = true, int $tab_index = 2, bool $extended = true )
```

## Описание

См. alsowp_editor()

## Параметры

- `$content` `string` — обязательный. Содержимое текстовой области.
- `$id` `string` — необязательный, по умолчанию `'content'`. Значение HTML-атрибута ID. Значение по умолчанию 'content'.
- `$prev_id` `string` — необязательный, по умолчанию `'title'`. Не используется.
- `$media_buttons` `bool` — необязательный, по умолчанию `true`. Отображать ли кнопки медиафайлов.
- `$tab_index` `int` — необязательный, по умолчанию `2`. Не используется.
- `$extended` `bool` — необязательный, по умолчанию `true`. Не используется.

## Исходный код

Файл: `wp-includes/deprecated.php:2600`

```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 ) );
}
```

## История изменений

- 3.3.0 — Deprecated. Use wp_editor()
- 2.1.0 — Introduced.

## Связанные

Использует: [`wp_editor`](https://chugunov.pro/api-wordpress/functions/wp_editor/), [`_deprecated_function`](https://chugunov.pro/api-wordpress/functions/_deprecated_function/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/the_editor/
