# the_author_meta()

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

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

## Сигнатура

```php
the_author_meta( string $field = '', int|false $user_id = false )
```

## Описание

См. alsoget_the_author_meta()

## Параметры

- `$field` `string` — необязательный, по умолчанию `''`. Выбирает поле записи пользователя. Список возможных полей см. в get_the_author_meta() .
- `$user_id` `int|false` — необязательный, по умолчанию `false`. ID пользователя. По умолчанию — автор текущей записи.

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

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

```php
function the_author_meta( $field = '', $user_id = false ) {
	$author_meta = get_the_author_meta( $field, $user_id );

	/**
	 * Filters the value of the requested user metadata.
	 *
	 * The filter name is dynamic and depends on the $field parameter of the function.
	 *
	 * @since 2.8.0
	 *
	 * @param string    $author_meta The value of the metadata.
	 * @param int|false $user_id     The user ID.
	 */
	echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
}
```

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

- 2.8.0 — Introduced.

## Связанные

Использует: [`get_the_author_meta`](https://chugunov.pro/api-wordpress/functions/get_the_author_meta/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: [`the_author_icq`](https://chugunov.pro/api-wordpress/functions/the_author_icq/), [`the_author_yim`](https://chugunov.pro/api-wordpress/functions/the_author_yim/), [`the_author_msn`](https://chugunov.pro/api-wordpress/functions/the_author_msn/), [`the_author_aim`](https://chugunov.pro/api-wordpress/functions/the_author_aim/), [`the_author_url`](https://chugunov.pro/api-wordpress/functions/the_author_url/), [`the_author_ID`](https://chugunov.pro/api-wordpress/functions/the_author_id/), [`the_author_description`](https://chugunov.pro/api-wordpress/functions/the_author_description/), [`the_author_login`](https://chugunov.pro/api-wordpress/functions/the_author_login/), [`the_author_firstname`](https://chugunov.pro/api-wordpress/functions/the_author_firstname/), [`the_author_lastname`](https://chugunov.pro/api-wordpress/functions/the_author_lastname/), [`the_author_nickname`](https://chugunov.pro/api-wordpress/functions/the_author_nickname/), [`the_author_email`](https://chugunov.pro/api-wordpress/functions/the_author_email/).

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