This function has been deprecated. Use get_the_author_meta() instead.

get_author_name( int $auth_id = false )

Retrieve the specified author’s preferred display name.


Description

See also


Parameters

$auth_id

(int) (Optional) The ID of the author.

Default value: false


Return

(string) The author's display name.


Source

File: wp-includes/deprecated.php

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


Changelog

Changelog
Version Description
WP-2.8.0 Use get_the_author_meta()
WP-1.0.0 Introduced. This function has been deprecated. Use get_the_author_meta() instead.