# transition_comment_status

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

Тип: хук-действие.
Появился в версии: 2.7.0.

## Сигнатура

```php
do_action( 'transition_comment_status', string $new_status, string $old_status, WP_Comment $comment )
```

## Описание

Срабатывает при смене статуса комментария.

## Параметры

- `$new_status` `string` — обязательный. Новый статус комментария.
- `$old_status` `string` — обязательный. Прежний статус комментария.
- `$comment` `WP_Comment` — обязательный. Объект комментария.

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

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

```php
do_action( 'transition_comment_status', $new_status, $old_status, $comment );
```

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

- 2.7.0 — Introduced.

## Связанные

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

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