函数文档

get_the_author_yim()

💡 云策文档标注

概述

get_the_author_yim() 是一个已弃用的 WordPress 函数,用于获取当前文章作者的 Yahoo! IM 名称。自 2.8.0 版本起,建议使用 get_the_author_meta('yim') 替代。

关键要点

  • 函数功能:检索当前文章作者的 Yahoo! IM 名称。
  • 弃用状态:自 WordPress 2.8.0 版本起被弃用,应改用 get_the_author_meta('yim')。
  • 返回值:返回字符串类型的作者 Yahoo! IM 名称。
  • 相关函数:get_the_author_meta() 用于获取作者元数据,_deprecated_function() 用于标记弃用函数。

代码示例

function get_the_author_yim() {
    _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('yim')' );
    return get_the_author_meta('yim');
}

注意事项

  • 此函数已弃用,新代码中应避免使用,以保持兼容性和最佳实践。
  • 弃用信息会通过 _deprecated_function() 输出,帮助开发者识别和更新代码。

📄 原文内容

Retrieve the Yahoo! IM name of the author of the current post.

Description

See also

Return

string The author’s Yahoo! IM name.

Source

function get_the_author_yim() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('yim')' );
	return get_the_author_meta('yim');
}

Changelog

Version Description
2.8.0 Deprecated. Use get_the_author_meta()
1.5.0 Introduced.