函数文档

the_attachment_links()

💡 云策文档标注

概述

the_attachment_links() 函数曾用于显示附件链接,现已弃用并替换为存根函数。此文档面向 WordPress 开发者,说明其状态和替代方案。

关键要点

  • the_attachment_links() 函数已弃用,自 WordPress 3.7.0 版本起不再推荐使用。
  • 函数参数为 $id(int|bool,可选,默认值 false),但当前实现仅调用 _deprecated_function() 以标记弃用。
  • 相关函数 _deprecated_function() 用于标记函数为弃用状态,并在使用时发出通知。
  • 版本历史:在 2.0.0 版本引入,3.7.0 版本弃用。

📄 原文内容

This was once used to display attachment links. Now it is deprecated and stubbed.

Parameters

$idint|booloptional

Default:false

Source

function the_attachment_links( $id = false ) {
	_deprecated_function( __FUNCTION__, '3.7.0' );
}

Changelog

Version Description
3.7.0 Deprecated.
2.0.0 Introduced.