On this page
the_editor( string $content, string $id = 'content', string $prev_id = 'title', bool $media_buttons = true, int $tab_index = 2, bool $extended = true )
This function has been deprecated. Use wp_editor() instead.
Displays an editor: TinyMCE, HTML, or both.
Description
See also
Parameters
$contentstring Required-
Textarea content.
$idstring Optional-
HTML ID attribute value. Default
'content'.Default:
'content' $prev_idstring Optional-
Unused.
Default:
'title' $media_buttonsbool Optional-
Whether to display media buttons.
Default:
true $tab_indexint Optional-
Unused.
Default:
2 $extendedbool Optional-
Unused.
Default:
true
Source
File: wp-includes/deprecated.php. View all references
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 ) );
}
Related
Uses
| Uses | Description |
|---|---|
| wp_editor() wp-includes/general-template.php | Renders an editor. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Use wp_editor() |
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/the_editor