函数文档

wp_add_iframed_editor_assets_html()

💡 云策文档标注

概述

wp_add_iframed_editor_assets_html() 是一个已弃用的 WordPress 函数,用于将块编辑器资源作为内联脚本注入到编辑器 iframe 中。该函数在 WordPress 6.0.0 版本中被标记为弃用。

关键要点

  • 函数 wp_add_iframed_editor_assets_html() 用于注入块编辑器资源到 iframe 中。
  • 该函数在 WordPress 6.0.0 版本中被弃用,建议开发者停止使用。
  • 函数最初在 WordPress 5.8.0 版本中引入。
  • 弃用信息通过 _deprecated_function() 函数处理。

📄 原文内容

Inject the block editor assets that need to be loaded into the editor’s iframe as an inline script.

Source

function wp_add_iframed_editor_assets_html() {
	_deprecated_function( __FUNCTION__, '6.0.0' );
}

Changelog

Version Description
6.0.0 Deprecated.
5.8.0 Introduced.