Advertisements

the_editor

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

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: