Displays an editor: TinyMCE, HTML, or both.
Description
See also
Parameters
$content
stringrequired- Textarea content.
$id
stringoptional- HTML ID attribute value. Default
'content'
.Default:
'content'
$prev_id
stringoptional- Unused.
Default:
'title'
$media_buttons
booloptional- Whether to display media buttons.
Default:
true
$tab_index
intoptional- Unused.
Default:
2
$extended
booloptional- Unused.
Default:
true
Source
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 ) );
}
Changelog
Version | Description |
---|---|
3.3.0 | Use wp_editor() |
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.