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
-
(string)
- 相关
-
- wp_editor()
- 定义位置
-
-
wp-includes/deprecated.php
, line 2589
-
wp-includes/deprecated.php
- 引入
- 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 ) ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。