wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_author_name › WordPress Function

Since1.0.0
已弃用2.8.0
get_author_name ( $auth_id = false )
参数:
  • (int) $auth_id The ID of the author.
    Required: No
    默认: false
查看:
返回:
  • (string) The author's display name.
定义在:
文档:

Retrieve the specified author's preferred display 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);
}