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()
定义位置
  • wp-includes/deprecated.php
    , line 1592
引入
1.0.0
弃用
2.8.0

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

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);
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。