transition_comment_status

Advertisement

Summery Summery

Fires when the comment status is in transition.

Syntax Syntax

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

Parameters Parameters

$new_status

(int|string) The new comment status.

$old_status

(int|string) The old comment status.

$comment

(WP_Comment) Comment object.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.