the_editor() - WordPress 函数参考中文文档

返回介绍

the_editor()

发布于 2017-09-11 字数2001 浏览 883 评论 0

Warning: This function has been deprecated. Use wp_editor() instead.

the_editor( string $content,  string $id = 'content',  string $prev_id = 'title',  bool $media_buttons = true,  int $tab_index = 2,  bool $extended = true )

Displays an editor: TinyMCE, HTML, or both.


描述


参数

$content

(string)
(Required)
Textarea content.

$id

(string)
(Optional)
HTML ID attribute value.

Default value: ‘content’

$prev_id

(string)
(Optional)
Unused.

Default value: ‘title’

$media_buttons

(bool)
(Optional)
Whether to display media buttons.

Default value: true

$tab_index

(int)
(Optional)
Unused.

Default value: 2

$extended

(bool)
(Optional)
Unused.

Default value: true


源代码

File: wp-includes/deprecated.php

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

更新日志

Version 描述
3.3.0 Use wp_editor()
2.1.0 Introduced.

相关函数

Uses

  • wp-includes/general-template.php:
    wp_editor()
  • wp-includes/functions.php:
    _deprecated_function()

User Contributed Notes

上一篇:the_date_xml()

下一篇:the_embed_site_title()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!