wpseek.com
A WordPress-centric search engine for devs and theme authors



the_editor › WordPress Function

Since2.1.0
Deprecated3.3.0
the_editor ( $content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true )
Parameters: (6)
  • (string) $content Textarea content.
    Required: Yes
  • (string) $id Optional. HTML ID attribute value. Default 'content'.
    Required: No
    Default: 'content'
  • (string) $prev_id Optional. Unused.
    Required: No
    Default: 'title'
  • (bool) $media_buttons Optional. Whether to display media buttons. Default true.
    Required: No
    Default: true
  • (int) $tab_index Optional. Unused.
    Required: No
    Default: 2
  • (bool) $extended Optional. Unused.
    Required: No
    Default: true
See:
Defined at:
Codex:

Displays an editor: TinyMCE, HTML, or both.



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 ) );
}