# get_the_author()

URL: https://chugunov.pro/api-wordpress/functions/get_the_author/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 1.5.0.

## Сигнатура

```php
get_the_author( string $deprecated = '' ): string
```

## Описание

Получает автора текущей записи.

## Параметры

- `$deprecated` `string` — необязательный, по умолчанию `''`. Устаревший.

## Возвращаемое значение

`string`

## Исходный код

Файл: `wp-includes/author-template.php:24`

```php
function get_the_author( $deprecated = '' ) {
	global $authordata;

	if ( ! empty( $deprecated ) ) {
		_deprecated_argument( __FUNCTION__, '2.1.0' );
	}

	/**
	 * Filters the display name of the current post's author.
	 *
	 * @since 2.9.0
	 *
	 * @param string $display_name The author's display name.
	 */
	return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : '' );
}
```

## История изменений

- 6.3.0 — Returns an empty string if the author’s display name is unknown.
- 1.5.0 — Introduced.

## Связанные

Использует: [`_deprecated_argument`](https://chugunov.pro/api-wordpress/functions/_deprecated_argument/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: [`get_the_author_posts_link`](https://chugunov.pro/api-wordpress/functions/get_the_author_posts_link/), `WP_Posts_List_Table::column_author`, `WP_Media_List_Table::column_author`, [`get_the_archive_title`](https://chugunov.pro/api-wordpress/functions/get_the_archive_title/), [`get_the_author_link`](https://chugunov.pro/api-wordpress/functions/get_the_author_link/), [`the_author`](https://chugunov.pro/api-wordpress/functions/the_author/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/get_the_author/
