# get_comment_text

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

Тип: хук-фильтр.
Появился в версии: 1.5.0.

## Сигнатура

```php
apply_filters( 'get_comment_text', string $comment_text, WP_Comment $comment, array $args )
```

## Описание

[See also](#see-also)
- [Walker_Comment::comment()](https://developer.wordpress.org/reference/classes/Walker_Comment/comment/)

## Параметры

- `$comment_text` `string` — обязательный. Текст комментария.
- `$comment` `WP_Comment` — обязательный. Объект комментария.
- `$args` `array` — обязательный. Массив аргументов.

## Фильтруемое значение

Текст комментария.

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

Файл: `wp-includes/comment-template.php:1059`

```php
return apply_filters( 'get_comment_text', $comment_text, $comment, $args );
```

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

- 1.5.0 — Introduced.

## Связанные

Используется в: [`get_comment_text`](https://chugunov.pro/api-wordpress/functions/get_comment_text/).

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