函数文档

_media_button()

💡 云策文档标注

概述

_media_button() 函数曾用于显示媒体按钮,现已弃用并替换为存根函数。

关键要点

  • _media_button() 函数在 WordPress 3.5.0 版本中引入,但已被弃用。
  • 该函数现在仅调用 _deprecated_function() 来标记弃用状态,不执行原有功能。
  • 开发者应避免使用此函数,并参考相关文档更新代码。

代码示例

function _media_button($title, $icon, $type, $id) {
    _deprecated_function( __FUNCTION__, '3.5.0' );
}

注意事项

  • 此函数已弃用,使用它可能会在开发环境中触发弃用警告。
  • 建议检查代码库中是否有对 _media_button() 的调用,并替换为现代替代方案。

📄 原文内容

This was once used to display a media button.

Description

Now it is deprecated and stubbed.

Source

function _media_button($title, $icon, $type, $id) {
	_deprecated_function( __FUNCTION__, '3.5.0' );
}

Changelog

Version Description
3.5.0 Introduced.