Title: transition_comment_status
Published: April 25, 2014
Last modified: May 20, 2026

---

# do_action( ‘transition_comment_status’, string $new_status, string $old_status, WP_Comment $comment )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#wp--skip-link--target)

Fires when the comment status is in transition.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#parameters)󠁿

 `$new_status`string

The new comment status.

`$old_status`string

The old comment status.

`$comment`[WP_Comment](https://developer.wordpress.org/reference/classes/wp_comment/)

Comment object.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/comment.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/comment.php#L1901)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment.php#L1901-L1901)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_transition_comment_status()](https://developer.wordpress.org/reference/functions/wp_transition_comment_status/)`wp-includes/comment.php` |

Calls hooks for when a comment status transition occurs.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/transition_comment_status/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.7.0](https://developer.wordpress.org/reference/since/2.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Ftransition_comment_status%2F)
before being able to contribute a note or feedback.