Displays an editor: TinyMCE, HTML, or both.
$contentstringrequired
$idstringoptional
'content'.Default:'content'
$prev_idstringoptional
Default:'title'
$media_buttonsbooloptional
Default:true
$tab_indexintoptional
Default:2
$extendedbooloptional
Default:true
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 ) );
}
| Version | Description |
|---|---|
| 3.3.0 | Use wp_editor() |
| 2.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/the_editor