Action hook 'transition_comment_status'

in WP Core File wp-includes/comment.php at line 1799

Description

Fires when the comment status is in transition.

Occurrences

Filename Line Number
wp-includes/comment.php 1799

Parameters

Type Name Description
int|string $new_status The new comment status.
int|string $old_status The old comment status.
WP_Comment $comment Comment object.

PHP Doc

/**
		 * Fires when the comment status is in transition.
		 *
		 * @since 2.7.0
		 *
		 * @param int|string $new_status The new comment status.
		 * @param int|string $old_status The old comment status.
		 * @param WP_Comment $comment    Comment object.
		 */