A WordPress-centric search engine for devs and theme authors



get_author_name ›

Since1.0.0
Deprecated2.8.0
get_author_name ( $auth_id = false )
Parameters:
  • (int) $auth_id The ID of the author.
    Required: No
    Default: false
See:
Returns:
  • (string) The author's display name.
Defined at:
Codex:

Retrieve the specified author's preferred display name.



Source

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