the_editor

Displays an editor: TinyMCE, HTML, or both.

Description

the_editor( (string) $content, (string) $id = 'content', (string) $prev_id = 'title', (constant) $media_buttons = true, (int) $tab_index = 2, (constant) $extended = true ); 

Parameters (6)

0. $content (string)
Textarea content.
1. $id — Optional. (string) => 'content'
HTML ID attribute value. Default content..
2. $prev_id — Optional. (string) => 'title'
Unused.
3. $media_buttons — Optional. (constant) => true
Whether to display media buttons. Default true.
4. $tab_index — Optional. (int) => 2
Unused.
5. $extended — Optional. (constant) => true
Unused.

Usage

  1. if ( !function_exists( 'the_editor' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Textarea content. 
  5. $content = ''; 
  6.  
  7. // Optional. HTML ID attribute value. Default 'content'. 
  8. $id = 'content'; 
  9.  
  10. // Optional. Unused. 
  11. $prev_id = 'title'; 
  12.  
  13. // Optional. Whether to display media buttons. Default true. 
  14. $media_buttons = true; 
  15.  
  16. // Optional. Unused. 
  17. $tab_index = 2; 
  18.  
  19. // Optional. Unused. 
  20. $extended = true; 
  21.  
  22. // NOTICE! Understand what this does before running. 
  23. $result = the_editor($content, $id, $prev_id, $media_buttons, $tab_index, $extended); 
  24.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) { 
  2. _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); 
  3.  
  4. wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );