函数文档

the_author_icq()

💡 云策文档标注

概述

the_author_icq() 是一个已弃用的 WordPress 函数,用于显示当前文章作者的 ICQ 号码。自 WordPress 2.8.0 起,建议使用 the_author_meta('icq') 替代。

关键要点

  • the_author_icq() 函数已被弃用,不应在新代码中使用。
  • 替代方案是使用 the_author_meta('icq') 来获取和显示作者的 ICQ 号码。
  • 该函数在 WordPress 0.71 版本中引入,在 2.8.0 版本中被标记为弃用。
  • 弃用信息通过 _deprecated_function() 函数输出,提醒开发者更新代码。

注意事项

使用 the_author_icq() 可能会触发弃用警告,影响代码的兼容性和性能。建议尽快迁移到推荐的替代函数。


📄 原文内容

Display the ICQ number of the author of the current post.

Description

See also

Source

function the_author_icq() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta('icq')' );
	the_author_meta('icq');
}

Changelog

Version Description
2.8.0 Deprecated. Use the_author_meta()
0.71 Introduced.