Warning: This function has been deprecated. Use wp_editor() instead.

the_editor() WordPress Function

The the_editor() function allows you to add a content editor to a Wordpress page or post. This can be useful if you want to add a custom editor to a page or post, or if you want to add an editor to a template file.

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

Displays an editor: TinyMCE, HTML, or both.


Description

Top ↑

See also


Top ↑

Parameters

$content

(string)(Required)Textarea content.

$id

(string)(Optional) HTML ID attribute value.

Default value: 'content'

$prev_id

(string)(Optional) Unused.

Default value: 'title'

$media_buttons

(bool)(Optional) Whether to display media buttons.

Default value: true

$tab_index

(int)(Optional) Unused.

Default value: 2

$extended

(bool)(Optional) Unused.

Default value: true


Top ↑

Source

File: wp-includes/deprecated.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 ) );
}


Top ↑

Changelog

Changelog
VersionDescription
3.3.0Use wp_editor()
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More