the_editor

函数


the_editor ( $content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true )
参数
  • (string)
    $content
    Textarea content.
    Required:
  • (string)
    $id
    Optional. HTML ID attribute value. Default ‘content’.
    Required:
    Default: ‘content’
  • (string)
    $prev_id
    Optional. Unused.
    Required:
    Default: ‘title’
  • (bool)
    $media_buttons
    Optional. Whether to display media buttons. Default true.
    Required:
    Default: true
  • (int)
    $tab_index
    Optional. Unused.
    Required:
    Default: 2
  • (bool)
    $extended
    Optional. Unused.
    Required:
    Default: true
相关
  • wp_editor()
定义位置
  • wp-includes/deprecated.php
    , line 2589
引入
2.1.0
弃用
3.3.0

Displays an editor: TinyMCE, HTML, or both.

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