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);
}