Definition:
function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {}
Display editor: TinyMCE, HTML, or both.
Parameters
- string $content: Textarea content.
- string $id: Optional, default is ‘content’. HTML ID attribute value.
- string $prev_id: Optional, not used
- bool $media_buttons: Optional, default is true. Whether to display media buttons.
- int $tab_index: Optional, not used
- $extended
Source code
function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {
wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );
return;
}
17121

December 13, 2011 


No comments yet... Be the first to leave a reply!