get_author_name()
最后更新于:2021-11-26 04:55:20
get_author_name( int$auth_id=false)Retrieve the specified author’s preferred display name.
参数
- $auth_id
-
(int) (Optional) The ID of the author.
Default value: false
响应
(string) The author’s display name.
源文件
文件: gc-includes/deprecated.php
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);
}