函数文档

links_popup_script()

💡 云策文档标注

概述

links_popup_script() 是一个已弃用的 WordPress 函数,用于生成指向链接弹窗的链接并显示链接数量。该函数自 WordPress 2.1.0 版本起被标记为弃用,开发者应避免使用。

关键要点

  • 函数 links_popup_script() 已弃用,自 WordPress 2.1.0 起不建议使用。
  • 函数接受参数:$text(链接文本)、$width(弹窗宽度)、$height(弹窗高度)、$file(弹窗页面文件)、$count(是否显示链接数量)。
  • 内部调用 _deprecated_function() 来标记弃用状态。
  • 函数最初在 WordPress 0.71 版本引入,在 2.1.0 版本弃用。

注意事项

由于此函数已弃用,开发者应寻找替代方案或更新代码以避免依赖过时功能。


📄 原文内容

Show the link to the links popup and the number of links.

Parameters

$textstringrequired
the text of the link
$widthintoptional
the width of the popup window

Default:400

$heightintoptional
the height of the popup window

Default:400

$filestringrequired
the page to open in the popup window
$countbooloptional
the number of links in the db

Default:true

Source

function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
	_deprecated_function( __FUNCTION__, '2.1.0' );
}

Changelog

Version Description
2.1.0 Deprecated.
0.71 Introduced.