函数文档

wp_print_editor_js()

💡 云策文档标注

概述

wp_print_editor_js() 是一个已弃用的 WordPress 函数,用于打印 TinyMCE 编辑器 JavaScript。自 WordPress 3.3.0 版本起,建议使用 wp_editor() 替代。

关键要点

  • wp_print_editor_js() 函数已被弃用,不应在新代码中使用。
  • 从 WordPress 3.3.0 开始,推荐使用 wp_editor() 函数来替代此功能。
  • 调用此函数会触发 _deprecated_function() 以标记弃用状态。

📄 原文内容

Prints TinyMCE editor JS.

Description

See also

Source

function wp_print_editor_js() {
	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
}

Changelog

Version Description
3.3.0 Introduced.