the_editor()WP 2.1.0

Устарела с версии 3.3.0. Больше не поддерживается и может быть удалена. Используйте wp_editor().

Displays an editor: TinyMCE, HTML, or both.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

the_editor( $content, $id, $prev_id, $media_buttons, $tab_index, $extended );
$content(строка) (обязательный)
Textarea content.
$id(строка)
HTML ID attribute value.
По умолчанию: 'content'
$prev_id(строка)
Unused.
По умолчанию: 'title'
$media_buttons(true|false)
Whether to display media buttons.
По умолчанию: true
$tab_index(int)
Unused.
По умолчанию: 2
$extended(true|false)
Unused.
По умолчанию: true

Заметки

Список изменений

С версии 2.1.0 Введена.
Устарела с 3.3.0 Use wp_editor()

Код the_editor() WP 6.5.2

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