This function has been deprecated. Use wp_editor() instead.
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
See also
Parameters
- $content
-
(Required) Textarea content.
- $id
-
(Optional) HTML ID attribute value. Default 'content'.
Default value: 'content'
- $prev_id
-
(Optional) Unused.
Default value: 'title'
- $media_buttons
-
(Optional) Whether to display media buttons.
Default value: true
- $tab_index
-
(Optional) Unused.
Default value: 2
- $extended
-
(Optional) Unused.
Default value: true
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__, 'WP-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. This function has been deprecated. Use wp_editor() instead. |