get_author_name()WP 1.0.0

Устарела с версии 2.8.0. Больше не поддерживается и может быть удалена. Используйте get_the_author_meta().

Retrieve the specified author's preferred display name.

Хуков нет.

Возвращает

Строку. The author's display name.

Использование

get_author_name( $auth_id );
$auth_id(int)
The ID of the author.
По умолчанию: false

Заметки

Список изменений

С версии 1.0.0 Введена.
Устарела с 2.8.0 Use get_the_author_meta()

Код get_author_name() WP 6.5.2

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