# the_editor

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

Тип: хук-фильтр.
Появился в версии: 2.1.0.

## Сигнатура

```php
apply_filters( 'the_editor', string $output )
```

## Описание

Фильтрует HTML-разметку, которая выводит редактор.

## Параметры

- `$output` `string` — обязательный. HTML-разметка редактора.

## Фильтруемое значение

HTML-разметка редактора.

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

Файл: `wp-includes/class-wp-editor.php:267`

```php
$the_editor = apply_filters(
	'the_editor',
	'<div id="wp-' . $editor_id_attr . '-editor-container" class="wp-editor-container">' .
	$quicktags_toolbar .
	'<textarea' . $editor_class . $height . $tabindex . $autocomplete . ' cols="40" name="' . esc_attr( $set['textarea_name'] ) . '" ' .
	'id="' . $editor_id_attr . '">%s</textarea></div>'
);
```

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

- 2.1.0 — Introduced.

## Связанные

Используется в: `_WP_Editors::editor`.

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