wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



the_editor › WordPress Function

Seit2.1.0
Veraltet3.3.0
the_editor ( $content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true )
Parameter: (6)
  • (string) $content Textarea content.
    Erforderlich: Ja
  • (string) $id Optional. HTML ID attribute value. Default 'content'.
    Erforderlich: Nein
    Standard: 'content'
  • (string) $prev_id Optional. Unused.
    Erforderlich: Nein
    Standard: 'title'
  • (bool) $media_buttons Optional. Whether to display media buttons. Default true.
    Erforderlich: Nein
    Standard: true
  • (int) $tab_index Optional. Unused.
    Erforderlich: Nein
    Standard: 2
  • (bool) $extended Optional. Unused.
    Erforderlich: Nein
    Standard: true
Siehe:
Definiert in:
Codex:

Displays an editor: TinyMCE, HTML, or both.



Quellcode

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