get_author_name

函数
get_author_name ( $auth_id = false )
参数
  • (int) $auth_id The ID of the author.
    Required:
    Default: false
返回值
  • (string) The author's display name.
相关
  • get_the_author_meta()
定义位置
相关方法
get_cat_nameget_author_linkget_the_author_lastnameget_the_author_aimget_the_author_nickname
引入
1.0.0
弃用
2.8.0

get_author_name: 此函数返回给定作者的显示名称。

检索指定作者的首选显示名称。

function get_author_name( $auth_id = false ) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('display_name')' );
	return get_the_author_meta('display_name', $auth_id);
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 11:36:30

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: