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

In this article

Fires when the comment status is in transition.

Parameters

$new_statusint|string
The new comment status.
$old_statusint|string
The old comment status.
$commentWP_Comment
Comment object.

Source

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

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.